(bug 11487) Special:Protectedpages doesn't list protections with pr_expiry IS NULL...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 17 Mar 2009 15:27:48 +0000 (15:27 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 17 Mar 2009 15:27:48 +0000 (15:27 +0000)
RELEASE-NOTES
includes/specials/SpecialProtectedpages.php

index 2a21d5e..61b4aff 100644 (file)
@@ -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
index 2ff423b..a38a8cd 100644 (file)
@@ -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 );