X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FArticle.php;h=c9dc273b47176af3b36ecd07880c3a987d2627bd;hb=d6b41380f7a71a0d8115bb45ef700c216322a4ce;hp=b91bd9a88ae965f9b8f5efbe5785794c1d2a54d0;hpb=2cccf01c849b2ee94eb0cefcd63552d3ddc266b4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/Article.php b/includes/page/Article.php index b91bd9a88a..c9dc273b47 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -590,7 +590,7 @@ class Article implements Page { $outputPage->setRobotPolicy( 'noindex,nofollow' ); $errortext = $error->getWikiText( false, 'view-pool-error' ); - $outputPage->addWikiText( '
' . $errortext . '
' ); + $outputPage->addWikiText( Html::errorBox( $errortext ) ); } # Connection or timeout error return; @@ -1179,7 +1179,8 @@ class Article implements Page { $cache = MediaWikiServices::getInstance()->getMainObjectStash(); $key = $cache->makeKey( 'page-recent-delete', md5( $title->getPrefixedText() ) ); $loggedIn = $this->getContext()->getUser()->isLoggedIn(); - if ( $loggedIn || $cache->get( $key ) ) { + $sessionExists = $this->getContext()->getRequest()->getSession()->isPersistent(); + if ( $loggedIn || $cache->get( $key ) || $sessionExists ) { $logTypes = [ 'delete', 'move', 'protect' ]; $dbr = wfGetDB( DB_REPLICA ); @@ -1196,7 +1197,7 @@ class Article implements Page { 'lim' => 10, 'conds' => $conds, 'showIfEmpty' => false, - 'msgKey' => [ $loggedIn + 'msgKey' => [ $loggedIn || $sessionExists ? 'moveddeleted-notice' : 'moveddeleted-notice-recent' ] @@ -2116,16 +2117,6 @@ class Article implements Page { return $this->mPage->doPurge(); } - /** - * Call to WikiPage function for backwards compatibility. - * @see WikiPage::getLastPurgeTimestamp - * @deprecated since 1.29 - */ - public function getLastPurgeTimestamp() { - wfDeprecated( __METHOD__, '1.29' ); - return $this->mPage->getLastPurgeTimestamp(); - } - /** * Call to WikiPage function for backwards compatibility. * @see WikiPage::doViewUpdates @@ -2648,45 +2639,5 @@ class Article implements Page { return $handler->getAutoDeleteReason( $title, $hasHistory ); } - /** - * @return array - * - * @deprecated since 1.24, use WikiPage::selectFields() instead - */ - public static function selectFields() { - wfDeprecated( __METHOD__, '1.24' ); - return WikiPage::selectFields(); - } - - /** - * @param Title $title - * - * @deprecated since 1.24, use WikiPage::onArticleCreate() instead - */ - public static function onArticleCreate( $title ) { - wfDeprecated( __METHOD__, '1.24' ); - WikiPage::onArticleCreate( $title ); - } - - /** - * @param Title $title - * - * @deprecated since 1.24, use WikiPage::onArticleDelete() instead - */ - public static function onArticleDelete( $title ) { - wfDeprecated( __METHOD__, '1.24' ); - WikiPage::onArticleDelete( $title ); - } - - /** - * @param Title $title - * - * @deprecated since 1.24, use WikiPage::onArticleEdit() instead - */ - public static function onArticleEdit( $title ) { - wfDeprecated( __METHOD__, '1.24' ); - WikiPage::onArticleEdit( $title ); - } - // ****** }