the relevant section of the category.
* (bug 29109) Allow the automatic edit summary for redirect creation
show the first bit of the new redirect page.
-* (bug 5800) Added $formCallback as a parameter to the hook
- EditPage::showEditForm:initial.
* (bug 29723) mw.util.wikiGetlink() now defaults to wgPageName.
* (bug 29680) Add GetDefaultSortkey hook to override the default sortkey.
* (bug 16699) {{#language:}} accepts second parameter to specify the language in
'EditPage::showEditForm:initial': before showing the edit form
$editor: EditPage instance (object)
-$formCallback: Array for callback of modifying the edit form
Return false to halt editing; you'll need to handle error messages, etc.
yourself. Alternatively, modifying $error and returning true will cause the
$previewOutput = $this->getPreviewText();
}
- wfRunHooks( 'EditPage::showEditForm:initial', array( &$this, &$formCallback ) );
+ wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) );
$this->setHeaders();