r78258 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78257‎ | r78258 | r78259 >
Date:16:40, 12 December 2010
Author:ialex
Status:deferred
Tags:
Comment:
EditPage has a getArticle() method, so use it
Modified paths:
  • /trunk/extensions/Tasks/Tasks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Tasks/Tasks.php
@@ -142,8 +142,7 @@
143143 * @param EditPage $editPage
144144 */
145145 function wfTaskExtensionEditFormInitialHook( &$editPage ) { # Checked for HTML and MySQL insertion attacks
146 - global $wgArticle;
147 - return wfTaskExtensionHeaderHook( $wgArticle );
 146+ return wfTaskExtensionHeaderHook( $editPage->getArticle() );
148147 }
149148
150149 /**

Status & tagging log