From e664c88c12850dfd54933e83e87865a3ac9091b9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 25 Jun 2009 11:01:14 +0000 Subject: [PATCH] Move EditPage::showEditForm:initial hook down one statement so it has access to the parsed preview. --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1