fix notice: uninitialised var
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Nov 2004 12:50:21 +0000 (12:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 19 Nov 2004 12:50:21 +0000 (12:50 +0000)
includes/EditPage.php

index f1dcc49..0188851 100644 (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",