r48489 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48488‎ | r48489 | r48490 >
Date:15:27, 17 March 2009
Author:catrope
Status:ok
Tags:
Comment:
(bug 11487) Special:Protectedpages doesn't list protections with pr_expiry IS NULL. Patch by Jidanni
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/specials/SpecialProtectedpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialProtectedpages.php
@@ -282,7 +282,8 @@
283283
284284 function getQueryInfo() {
285285 $conds = $this->mConds;
286 - $conds[] = 'pr_expiry>' . $this->mDb->addQuotes( $this->mDb->timestamp() );
 286+ $conds[] = '(pr_expiry>' . $this->mDb->addQuotes( $this->mDb->timestamp() ) .
 287+ 'OR pr_expiry IS NULL)';
287288 $conds[] = 'page_id=pr_page';
288289 $conds[] = 'pr_type=' . $this->mDb->addQuotes( $this->type );
289290
Index: trunk/phase3/RELEASE-NOTES
@@ -274,6 +274,8 @@
275275 * (bug 17990) trackback.php now has a trackback.php5 alias and works with
276276 $wgScriptExtension
277277 * (bug 14990) Parser tests works again with PostgreSQL
 278+* (bug 11487) Special:Protectedpages doesn't list protections with pr_expiry
 279+ IS NULL
278280
279281 == API changes in 1.15 ==
280282 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions

Status & tagging log