r75524 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75523‎ | r75524 | r75525 >
Date:12:05, 27 October 2010
Author:reedy
Status:deferred
Tags:
Comment:
Move declaration of which is an editPage used in a hook before hook call
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/View.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/View.php
@@ -397,10 +397,9 @@
398398 LqtHooks::$editType = 'new';
399399 LqtHooks::$editAppliesTo = null;
400400
 401+ $e = new EditPage( $article );
401402 wfRunHooks( 'LiquidThreadsShowNewThreadForm', array( &$e, $talkpage ) );
402403
403 - $e = new EditPage( $article );
404 -
405404 global $wgRequest;
406405 // Quietly force a preview if no subject has been specified.
407406 if ( !$subjectOk ) {

Status & tagging log