From: Aaron Schulz Date: Wed, 14 Mar 2007 18:35:23 +0000 (+0000) Subject: *Re-add some things lost in merge X-Git-Tag: 1.31.0-rc.0~53732 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=e19ab815f7bbd9b74e78605673bd59ebaa05b15c;p=lhc%2Fweb%2Fwiklou.git *Re-add some things lost in merge --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index d909d63fca..ecd01026c8 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -1,6 +1,5 @@ skin =& $skin; $this->preCacheMessages(); } @@ -47,7 +45,7 @@ class ChangesList { * @return ChangesList derivative */ public static function newFromUser( &$user ) { - $sk =& $user->getSkin(); + $sk = $user->getSkin(); $list = NULL; if( wfRunHooks( 'FetchChangesList', array( &$user, &$sk, &$list ) ) ) { return $user->getOption( 'usenewrc' ) ? new EnhancedChangesList( $sk ) : new OldChangesList( $sk ); @@ -300,6 +298,7 @@ class OldChangesList extends ChangesList { wfProfileIn( $fname ); # Extract DB fields into local scope + // FIXME: Would be good to replace this extract() call with something that explicitly initializes local variables. extract( $rc->mAttribs ); # Should patrol-related stuff be shown? @@ -380,6 +379,7 @@ class EnhancedChangesList extends ChangesList { $rc = RCCacheEntry::newFromParent( $baseRC ); # Extract fields from DB into the function scope (rc_xxxx variables) + // FIXME: Would be good to replace this extract() call with something that explicitly initializes local variables. extract( $rc->mAttribs ); $curIdEq = 'curid=' . $rc_cur_id; @@ -608,17 +608,15 @@ class EnhancedChangesList extends ChangesList { } $r .= $users; - - if($block[0]->numberofWatchingusers > 0) { - global $wgContLang; - $r .= wfMsg('number_of_watching_users_RCview', $wgContLang->formatNum($block[0]->numberofWatchingusers)); - } + $r .=$this->numberofWatchingusers($block[0]->numberofWatchingusers); + $r .= "\n"; # Sub-entries $r .= '