Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1154,8 +1154,6 @@ |
1155 | 1155 | |
1156 | 1156 | $sk = $wgUser->getSkin(); |
1157 | 1157 | |
1158 | | - wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ; |
1159 | | - |
1160 | 1158 | #need to parse the preview early so that we know which templates are used, |
1161 | 1159 | #otherwise users with "show preview after edit box" will get a blank list |
1162 | 1160 | #we parse this near the beginning so that setHeaders can do the title |
— | — | @@ -1164,6 +1162,8 @@ |
1165 | 1163 | if ( $this->formtype == 'preview' ) { |
1166 | 1164 | $previewOutput = $this->getPreviewText(); |
1167 | 1165 | } |
| 1166 | + |
| 1167 | + wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ; |
1168 | 1168 | |
1169 | 1169 | $this->setHeaders(); |
1170 | 1170 | |