r52392 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52391‎ | r52392 | r52393 >
Date:11:01, 25 June 2009
Author:catrope
Status:ok
Tags:
Comment:
Move EditPage::showEditForm:initial hook down one statement so it has access to the parsed preview.
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1154,8 +1154,6 @@
11551155
11561156 $sk = $wgUser->getSkin();
11571157
1158 - wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ;
1159 -
11601158 #need to parse the preview early so that we know which templates are used,
11611159 #otherwise users with "show preview after edit box" will get a blank list
11621160 #we parse this near the beginning so that setHeaders can do the title
@@ -1164,6 +1162,8 @@
11651163 if ( $this->formtype == 'preview' ) {
11661164 $previewOutput = $this->getPreviewText();
11671165 }
 1166+
 1167+ wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ;
11681168
11691169 $this->setHeaders();
11701170

Status & tagging log