diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /includes/specials/SpecialProtectedtitles.php | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'includes/specials/SpecialProtectedtitles.php')
-rw-r--r-- | includes/specials/SpecialProtectedtitles.php | 14 |
1 files changed, 2 insertions, 12 deletions
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 '<li>' . $lang->specialList( $link, implode( $description_items, ', ' ) ) . "</li>\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; } |