r88630 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88629‎ | r88630 | r88631 >
Date:01:47, 23 May 2011
Author:aaron
Status:ok
Tags:
Comment:
Added missing getUser() function to Pager:
Fatal error: Call to undefined method NewPagesPager::getUser() in D:\www\MW_trunk\phase3\includes\specials\SpecialNewpages.php on line 491
Modified paths:
  • /trunk/phase3/includes/specials/SpecialNewpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialNewpages.php
@@ -460,6 +460,14 @@
461461 return $title;
462462 }
463463
 464+ function getUser() {
 465+ static $user = null;
 466+ if ( $user === null ) {
 467+ $user = $this->mForm->getUser();
 468+ }
 469+ return $user;
 470+ }
 471+
464472 function getQueryInfo() {
465473 global $wgEnableNewpagesUserFilter, $wgGroupPermissions;
466474 $conds = array();

Status & tagging log