# Placeholders for text injection by hooks (must be HTML)
# extensions should take care to _append_ to the present value
- var $editFormTextTop;
- var $editFormTextAfterWarn;
- var $editFormTextAfterTools;
- var $editFormTextBottom;
+ public $editFormPageTop; // Before even the preview
+ public $editFormTextTop;
+ public $editFormTextAfterWarn;
+ public $editFormTextAfterTools;
+ public $editFormTextBottom;
/**
* @todo document
$this->mTitle =& $wgTitle;
# Placeholders for text injection by hooks (empty per default)
- $this->editFormTextTop = "";
- $this->editFormTextAfterWarn = "";
- $this->editFormTextAfterTools = "";
+ $this->editFormPageTop =
+ $this->editFormTextTop =
+ $this->editFormTextAfterWarn =
+ $this->editFormTextAfterTools =
$this->editFormTextBottom = "";
}
$text = $currev_text;
#Give a warning
- $this->editFormTextTop = "<h2>" . wfMsg('undofailed') . "</h2>\n" .
- '<p>'.wfMsg('explainundofailed').'</p>';
+ $this->editFormPageTop .= "<h2>" . wfMsg('undofailed') . "</h2>\n" .
+ '<p><strong class="error">'.wfMsg('explainundofailed').'</strong></p>';
}
}
}
$checkboxhtml = $minoredithtml . $watchhtml;
+ $wgOut->addHTML( $this->editFormPageTop );
+
if ( $wgUser->getOption( 'previewontop' ) ) {
if ( 'preview' == $this->formtype ) {