Revision: 48488
Author: catrope
Date: 2009-03-17 15:18:26 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
API: Fix E_NOTICE which broke displaying of legacy restrictions
(page.page_restrictions) in prop=info
Modified Paths:
--------------
trunk/phase3/includes/api/ApiQueryInfo.php
Modified: trunk/phase3/includes/api/ApiQueryInfo.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryInfo.php 2009-03-17 14:09:17 UTC (rev
48487)
+++ trunk/phase3/includes/api/ApiQueryInfo.php 2009-03-17 15:18:26 UTC (rev
48488)
@@ -345,7 +345,7 @@
$this->protections[$row->page_namespace][$row->page_title][] = $a;
# Also check old restrictions
- if($pageRestrictions[$row->pr_page]) {
+ if($this->pageRestrictions[$row->pr_page]) {
$restrictions = explode(':',
trim($this->pageRestrictions[$row->pr_page]));
foreach($restrictions as $restrict) {
$temp = explode('=',
trim($restrict));
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs