From 847fdc5ca14e20ed7d981e4bcbcc4b603efb040e Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 17 Mar 2009 15:27:48 +0000 Subject: [PATCH] (bug 11487) Special:Protectedpages doesn't list protections with pr_expiry IS NULL. Patch by Jidanni --- RELEASE-NOTES | 2 ++ includes/specials/SpecialProtectedpages.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2a21d5e7eb..61b4affd54 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -274,6 +274,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17990) trackback.php now has a trackback.php5 alias and works with $wgScriptExtension * (bug 14990) Parser tests works again with PostgreSQL +* (bug 11487) Special:Protectedpages doesn't list protections with pr_expiry + IS NULL == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/specials/SpecialProtectedpages.php b/includes/specials/SpecialProtectedpages.php index 2ff423bea4..a38a8cd190 100644 --- a/includes/specials/SpecialProtectedpages.php +++ b/includes/specials/SpecialProtectedpages.php @@ -282,7 +282,8 @@ class ProtectedPagesPager extends AlphabeticPager { function getQueryInfo() { $conds = $this->mConds; - $conds[] = 'pr_expiry>' . $this->mDb->addQuotes( $this->mDb->timestamp() ); + $conds[] = '(pr_expiry>' . $this->mDb->addQuotes( $this->mDb->timestamp() ) . + 'OR pr_expiry IS NULL)'; $conds[] = 'page_id=pr_page'; $conds[] = 'pr_type=' . $this->mDb->addQuotes( $this->type ); -- 2.20.1