dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0 and make pass
[lhc/web/wiklou.git]
/
includes
/
specials
/
pagers
/
UsersPager.php
diff --git
a/includes/specials/pagers/UsersPager.php
b/includes/specials/pagers/UsersPager.php
index
fbf179d
..
d08eb89
100644
(file)
--- a/
includes/specials/pagers/UsersPager.php
+++ b/
includes/specials/pagers/UsersPager.php
@@
-43,13
+43,13
@@
class UsersPager extends AlphabeticPager {
* @param bool|null $including Whether this page is being transcluded in
* another page
*/
* @param bool|null $including Whether this page is being transcluded in
* another page
*/
- function __construct( IContextSource $context = null, $par = null, $including = null ) {
+
public
function __construct( IContextSource $context = null, $par = null, $including = null ) {
if ( $context ) {
$this->setContext( $context );
}
$request = $this->getRequest();
if ( $context ) {
$this->setContext( $context );
}
$request = $this->getRequest();
- $par =
( $par !== null ) ? $par :
'';
+ $par =
$par ??
'';
$parms = explode( '/', $par );
$symsForAll = [ '*', 'user' ];
$parms = explode( '/', $par );
$symsForAll = [ '*', 'user' ];
@@
-178,7
+178,9
@@
class UsersPager extends AlphabeticPager {
$ulinks .= Linker::userToolLinksRedContribs(
$row->user_id,
$userName,
$ulinks .= Linker::userToolLinksRedContribs(
$row->user_id,
$userName,
- (int)$row->edits
+ (int)$row->edits,
+ // don't render parentheses in HTML markup (CSS will provide)
+ false
);
$lang = $this->getLanguage();
);
$lang = $this->getLanguage();
@@
-225,7
+227,7
@@
class UsersPager extends AlphabeticPager {
return Html::rawElement( 'li', [], "{$item}{$edits}{$created}{$blocked}" );
}
return Html::rawElement( 'li', [], "{$item}{$edits}{$created}{$blocked}" );
}
- function doBatchLookups() {
+
protected
function doBatchLookups() {
$batch = new LinkBatch();
$userIds = [];
# Give some pointers to make user links
$batch = new LinkBatch();
$userIds = [];
# Give some pointers to make user links