From: Aryeh Gregor Date: Sun, 29 Mar 2009 15:37:47 +0000 (+0000) Subject: Remove some makeKnownLinkObj() invocations in RC X-Git-Tag: 1.31.0-rc.0~42286 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=f4ad19c670ae1ba58414cf113f508a36e121f04c;p=lhc%2Fweb%2Fwiklou.git Remove some makeKnownLinkObj() invocations in RC Was being called for all rows, then thrown away for any rows that weren't normal edits (logs, etc.). --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 1c654dde8f..39b7f7debe 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -560,15 +560,15 @@ class EnhancedChangesList extends ChangesList { $querycur = $curIdEq."&diff=0&oldid=$rc_this_oldid"; $querydiff = $curIdEq."&diff=$rc_this_oldid&oldid=$rc_last_oldid$rcIdQuery"; $aprops = ' tabindex="'.$baseRC->counter.'"'; - $curLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), - $this->message['cur'], $querycur, '' ,'', $aprops ); # Make "diff" an "cur" links if( !$showdifflinks ) { - $curLink = $this->message['cur']; - $diffLink = $this->message['diff']; + $curLink = $this->message['cur']; + $diffLink = $this->message['diff']; } else if( in_array( $rc_type, array(RC_NEW,RC_LOG,RC_MOVE,RC_MOVE_OVER_REDIRECT) ) ) { - $curLink = ($rc_type != RC_NEW) ? $this->message['cur'] : $curLink; + $curLink = ($rc_type != RC_NEW) ? $this->message['cur'] + : $this->skin->makeKnownLinkObj( $rc->getTitle(), + $this->message['cur'], $querycur, '' ,'', $aprops ); $diffLink = $this->message['diff']; } else { $diffLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $this->message['diff'],