Page MenuHomePhabricator

specialListusers.php.patch

Authored By
bzimport
Nov 21 2014, 10:24 PM
Size
1 KB
Referenced Files
None
Subscribers
None

specialListusers.php.patch

Index: includes/specials/SpecialListusers.php
===================================================================
--- includes/specials/SpecialListusers.php (revision 50332)
+++ includes/specials/SpecialListusers.php (working copy)
@@ -116,6 +116,9 @@
function formatRow( $row ) {
global $wgLang;
+ if($row->user_name != 'Anonymous')
+ {
+
$userPage = Title::makeTitle( NS_USER, $row->user_name );
$name = $this->getSkin()->makeLinkObj( $userPage, htmlspecialchars( $userPage->getText() ) );
@@ -130,8 +133,11 @@
$groups = '';
}
+
$item = wfSpecialList( $name, $groups );
-
+
+
+
global $wgEdititis;
if ( $wgEdititis ) {
$editCount = $wgLang->formatNum( $row->edits );
@@ -150,6 +156,10 @@
wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) );
return "<li>{$item}{$edits}{$created}</li>";
+ } else {
+ return "";
+ }
+
}
function getBody() {
@@ -159,6 +169,7 @@
$this->mResult->rewind();
$batch = new LinkBatch;
while ( $row = $this->mResult->fetchObject() ) {
+
$batch->addObj( Title::makeTitleSafe( NS_USER, $row->user_name ) );
}
$batch->execute();
@@ -224,7 +235,7 @@
$query = parent::getDefaultQuery();
if( $this->requestedGroup != '' )
$query['group'] = $this->requestedGroup;
- if( $this->requestedUser != '' )
+ if( $this->requestedUser != '')
$query['username'] = $this->requestedUser;
wfRunHooks( 'SpecialListusersDefaultQuery', array( $this, &$query ) );
return $query;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4814
Default Alt Text
specialListusers.php.patch (1 KB)

Event Timeline