r65553 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65552‎ | r65553 | r65554 >
Date:19:44, 26 April 2010
Author:tisane
Status:deferred
Tags:
Comment:
Banished from this extension
Modified paths:
  • /trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php (modified) (history)
  • /trunk/extensions/PureWikiDeletion/PureWikiDeletion.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.php
@@ -133,12 +133,12 @@
134134 }
135135
136136 function PureWikiDeletionAlternateEditHook ($editPage){
137 - global $wgUser,$wgTitle,$wgOut;
 137+ global $wgUser,$wgOut;
138138 if ($wgUser->isLoggedIn()){
139139 return true;
140140 }
141141 $dbr = wfGetDB( DB_SLAVE );
142 - $blank_page_id=$wgTitle->getArticleID();
 142+ $blank_page_id=$editPage->getArticle()->getID();
143143 $result=$dbr->selectRow('blanked_page','blank_page_id',array
144144 ("blank_page_id" => $blank_page_id));
145145 if (!$result){
Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php
@@ -110,10 +110,10 @@
111111 }
112112
113113 public static function PureWikiDeletionEditHook( $editPage ) {
114 - global $wgTitle,$wgLang;
 114+ global $wgLang;
115115 wfLoadExtensionMessages('PureWikiDeletion');
116116 $dbr = wfGetDB( DB_SLAVE );
117 - $blank_page_id=$wgTitle->getArticleID();
 117+ $blank_page_id=$editPage->getArticle()->getID();
118118 $blank_row=array(
119119 'blank_user_id',
120120 'blank_user_name',

Status & tagging log