X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FNewFilesPager.php;h=57db8b3f5f7b3483bd75ecbbd32b890d8ef60d00;hb=2ec627ea02ad07db4842d3d53a1cce2b3c1384ee;hp=88dff6e02fe4f1ba0baa4ba5810963342057808a;hpb=22ac82f4cd7960735339d23865fce21665ea9c17;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/NewFilesPager.php b/includes/specials/pagers/NewFilesPager.php index 88dff6e02f..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() );