Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5253
specialListusers.php.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:24 PM
2014-11-21 22:24:01 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
specialListusers.php.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4814
Default Alt Text
specialListusers.php.patch (1 KB)
Attached To
Mode
T18487: UserManagement: Anonymous Account not create-/delete-/edit able , but it is visbile in user list
Attached
Detach File
Event Timeline
Log In to Comment