From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- includes/specials/SpecialProtectedtitles.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'includes/specials/SpecialProtectedtitles.php') diff --git a/includes/specials/SpecialProtectedtitles.php b/includes/specials/SpecialProtectedtitles.php index a40da87d..dd9198cb 100644 --- a/includes/specials/SpecialProtectedtitles.php +++ b/includes/specials/SpecialProtectedtitles.php @@ -38,11 +38,6 @@ class SpecialProtectedtitles extends SpecialPage { $this->setHeaders(); $this->outputHeader(); - // Purge expired entries on one in every 10 queries - if ( !mt_rand( 0, 10 ) ) { - Title::purgeExpiredRestrictions(); - } - $request = $this->getRequest(); $type = $request->getVal( $this->IdType ); $level = $request->getVal( $this->IdLevel ); @@ -72,7 +67,6 @@ class SpecialProtectedtitles extends SpecialPage { * @return string */ function formatRow( $row ) { - wfProfileIn( __METHOD__ ); static $infinity = null; @@ -82,7 +76,6 @@ class SpecialProtectedtitles extends SpecialPage { $title = Title::makeTitleSafe( $row->pt_namespace, $row->pt_title ); if ( !$title ) { - wfProfileOut( __METHOD__ ); return Html::rawElement( 'li', @@ -119,8 +112,6 @@ class SpecialProtectedtitles extends SpecialPage { )->escaped(); } - wfProfileOut( __METHOD__ ); - // @todo i18n: This should use a comma separator instead of a hard coded comma, right? return '
  • ' . $lang->specialList( $link, implode( $description_items, ', ' ) ) . "
  • \n"; } @@ -227,7 +218,6 @@ class ProtectedTitlesPager extends AlphabeticPager { } function getStartBody() { - wfProfileIn( __METHOD__ ); # Do a link batch query $this->mResult->seek( 0 ); $lb = new LinkBatch; @@ -237,7 +227,6 @@ class ProtectedTitlesPager extends AlphabeticPager { } $lb->execute(); - wfProfileOut( __METHOD__ ); return ''; } @@ -258,7 +247,8 @@ class ProtectedTitlesPager extends AlphabeticPager { */ function getQueryInfo() { $conds = $this->mConds; - $conds[] = 'pt_expiry>' . $this->mDb->addQuotes( $this->mDb->timestamp() ); + $conds[] = 'pt_expiry > ' . $this->mDb->addQuotes( $this->mDb->timestamp() ) . + ' OR pt_expiry IS NULL'; if ( $this->level ) { $conds['pt_create_perm'] = $this->level; } -- cgit v1.2.3-54-g00ecf