remove obsolete piece of code - newarticletext is never written into blank
authorErik Moeller <erik@users.mediawiki.org>
Sun, 4 Sep 2005 17:41:44 +0000 (17:41 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Sun, 4 Sep 2005 17:41:44 +0000 (17:41 +0000)
pages

includes/EditPage.php

index 163a08a..a9b0581 100644 (file)
@@ -479,12 +479,11 @@ class EditPage {
                $aid = $this->mTitle->getArticleID( GAID_FOR_UPDATE );
                if ( 0 == $aid ) {
                        # Don't save a new article if it's blank.
-                       if ( ( '' == $this->textbox1 ) ||
-                               ( wfMsg( 'newarticletext' ) == $this->textbox1 ) ) {
+                       if ( ( '' == $this->textbox1 ) ) {
                                        $wgOut->redirect( $this->mTitle->getFullURL() );
                                        wfProfileOut( $fname );
                                        return false;
-                               }
+                       }
 
                        $isComment=($this->section=='new');
                        $this->mArticle->insertNewArticle( $this->textbox1, $this->summary,