Per Raymond, fix for r107653: missed two changes from $section to $this->section
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 30 Dec 2011 21:34:19 +0000 (21:34 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 30 Dec 2011 21:34:19 +0000 (21:34 +0000)
includes/EditPage.php

index aa43ba9..83ce4e2 100644 (file)
@@ -699,8 +699,8 @@ class EditPage {
 
                // For message page not locally set, use the i18n message.
                // For other non-existent articles, use preload text if any.
-               if ( !$this->mTitle->exists() || $section == 'new' ) {
-                       if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI && $section != 'new' ) {
+               if ( !$this->mTitle->exists() || $this->section == 'new' ) {
+                       if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI && $this->section != 'new' ) {
                                # If this is a system message, get the default text.
                                $text = $this->mTitle->getDefaultMessageText();
                        }