fix notice: uninitialised var

This commit is contained in:
Brion Vibber 2004-11-19 12:50:21 +00:00
parent b7c9b17b38
commit 7da809b1c2

View file

@ -272,9 +272,9 @@ class EditPage {
if( $this->section != '' ) {
if( $this->section == 'new' ) {
$s.=wfMsg('editingcomment', $this->mTitle->getPrefixedText() );
$s = wfMsg('editingcomment', $this->mTitle->getPrefixedText() );
} else {
$s.=wfMsg('editingsection', $this->mTitle->getPrefixedText() );
$s = wfMsg('editingsection', $this->mTitle->getPrefixedText() );
}
if(!$this->preview) {
$sectitle=preg_match("/^=+(.*?)=+/mi",