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 @@
461
461
return $title;
462
462
}
463
463
464
+ function getUser() {
465
+ static $user = null;
466
+ if ( $user === null ) {
467
+ $user = $this->mForm->getUser();
468
+ }
469
+ return $user;
470
+ }
471
+
464
472
function getQueryInfo() {
465
473
global $wgEnableNewpagesUserFilter, $wgGroupPermissions;
466
474
$conds = array();
Status & tagging log
02:25, 30 June 2011
Reedy
(
talk
|
contribs
)
changed the
status
of r88630
[
removed:
new
added:
ok]