X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDeletedContributions.php;h=40d89625eb255a8d60ba39c3ac9b81065f428f06;hb=4147bd819b1cf869699d60446425831365ea26b2;hp=73b438c28ddd3317fdb8e39d8ebbda68e5abfd5f;hpb=a9164f143a59a8d957a1d7f205715ac57fff3c8c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 73b438c28d..40d89625eb 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -21,6 +21,7 @@ * @ingroup SpecialPage */ +use MediaWiki\Block\DatabaseBlock; use MediaWiki\MediaWikiServices; /** @@ -45,6 +46,7 @@ class DeletedContributionsPage extends SpecialPage { $this->setHeaders(); $this->outputHeader(); $this->checkPermissions(); + $this->addHelpLink( 'Help:User contributions' ); $out = $this->getOutput(); $out->setPageTitle( $this->msg( 'deletedcontributions-title' ) ); @@ -159,9 +161,9 @@ class DeletedContributionsPage extends SpecialPage { $links = $this->getLanguage()->pipeList( $tools ); // Show a note if the user is blocked and display the last block log entry. - $block = Block::newFromTarget( $userObj, $userObj ); - if ( !is_null( $block ) && $block->getType() != Block::TYPE_AUTO ) { - if ( $block->getType() == Block::TYPE_RANGE ) { + $block = DatabaseBlock::newFromTarget( $userObj, $userObj ); + if ( !is_null( $block ) && $block->getType() != DatabaseBlock::TYPE_AUTO ) { + if ( $block->getType() == DatabaseBlock::TYPE_RANGE ) { $nt = MediaWikiServices::getInstance()->getNamespaceInfo()-> getCanonicalName( NS_USER ) . ':' . $block->getTarget(); }