X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FNewFilesPager.php;h=57db8b3f5f7b3483bd75ecbbd32b890d8ef60d00;hb=2ec627ea02ad07db4842d3d53a1cce2b3c1384ee;hp=d05ebf83af4a2d2bf90d5f0622276e8ed377477e;hpb=c1c3302286deb92f3eb81a39b5ee61f8c413f5ad;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/NewFilesPager.php b/includes/specials/pagers/NewFilesPager.php index d05ebf83af..57db8b3f5f 100644 --- a/includes/specials/pagers/NewFilesPager.php +++ b/includes/specials/pagers/NewFilesPager.php @@ -87,7 +87,9 @@ class NewFilesPager extends RangeChronologicalPager { } if ( !$opts->getValue( 'showbots' ) ) { - $groupsWithBotPermission = User::getGroupsWithPermission( 'bot' ); + $groupsWithBotPermission = MediaWikiServices::getInstance() + ->getPermissionManager() + ->getGroupsWithPermission( 'bot' ); if ( count( $groupsWithBotPermission ) ) { $dbr = wfGetDB( DB_REPLICA ); @@ -192,7 +194,7 @@ class NewFilesPager extends RangeChronologicalPager { $user = User::newFromId( $row->img_user ); $title = Title::makeTitle( NS_FILE, $name ); - $ul = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink( + $ul = $this->getLinkRenderer()->makeLink( $user->getUserPage(), $user->getName() ); @@ -204,5 +206,6 @@ class NewFilesPager extends RangeChronologicalPager { . htmlspecialchars( $time ) . "
\n" ); + return ''; } }