From: Roan Kattouw Date: Thu, 25 Jun 2009 11:01:14 +0000 (+0000) Subject: Move EditPage::showEditForm:initial hook down one statement so it has access to the... X-Git-Tag: 1.31.0-rc.0~41214 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=e664c88c12850dfd54933e83e87865a3ac9091b9;p=lhc%2Fweb%2Fwiklou.git Move EditPage::showEditForm:initial hook down one statement so it has access to the parsed preview. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index c6c272d0f2..2c4ed11151 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1154,8 +1154,6 @@ class EditPage { $sk = $wgUser->getSkin(); - wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ; - #need to parse the preview early so that we know which templates are used, #otherwise users with "show preview after edit box" will get a blank list #we parse this near the beginning so that setHeaders can do the title @@ -1164,6 +1162,8 @@ class EditPage { if ( $this->formtype == 'preview' ) { $previewOutput = $this->getPreviewText(); } + + wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ; $this->setHeaders();