Revision: 48489
Author: catrope
Date: 2009-03-17 15:27:48 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
(bug 11487) Special:Protectedpages doesn't list protections with pr_expiry IS
NULL. Patch by Jidanni
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES
trunk/phase3/includes/specials/SpecialProtectedpages.php
Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES 2009-03-17 15:18:26 UTC (rev 48488)
+++ trunk/phase3/RELEASE-NOTES 2009-03-17 15:27:48 UTC (rev 48489)
@@ -274,6 +274,8 @@
* (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
Modified: trunk/phase3/includes/specials/SpecialProtectedpages.php
===================================================================
--- trunk/phase3/includes/specials/SpecialProtectedpages.php 2009-03-17
15:18:26 UTC (rev 48488)
+++ trunk/phase3/includes/specials/SpecialProtectedpages.php 2009-03-17
15:27:48 UTC (rev 48489)
@@ -282,7 +282,8 @@
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 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs