Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.php |
— | — | @@ -133,12 +133,12 @@ |
134 | 134 | } |
135 | 135 | |
136 | 136 | function PureWikiDeletionAlternateEditHook ($editPage){ |
137 | | - global $wgUser,$wgTitle,$wgOut; |
| 137 | + global $wgUser,$wgOut; |
138 | 138 | if ($wgUser->isLoggedIn()){ |
139 | 139 | return true; |
140 | 140 | } |
141 | 141 | $dbr = wfGetDB( DB_SLAVE ); |
142 | | - $blank_page_id=$wgTitle->getArticleID(); |
| 142 | + $blank_page_id=$editPage->getArticle()->getID(); |
143 | 143 | $result=$dbr->selectRow('blanked_page','blank_page_id',array |
144 | 144 | ("blank_page_id" => $blank_page_id)); |
145 | 145 | if (!$result){ |
Index: trunk/extensions/PureWikiDeletion/PureWikiDeletion.hooks.php |
— | — | @@ -110,10 +110,10 @@ |
111 | 111 | } |
112 | 112 | |
113 | 113 | public static function PureWikiDeletionEditHook( $editPage ) { |
114 | | - global $wgTitle,$wgLang; |
| 114 | + global $wgLang; |
115 | 115 | wfLoadExtensionMessages('PureWikiDeletion'); |
116 | 116 | $dbr = wfGetDB( DB_SLAVE ); |
117 | | - $blank_page_id=$wgTitle->getArticleID(); |
| 117 | + $blank_page_id=$editPage->getArticle()->getID(); |
118 | 118 | $blank_row=array( |
119 | 119 | 'blank_user_id', |
120 | 120 | 'blank_user_name', |