From 8fb1491404ca7e5c5306a0ead77e17910519362a Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Sun, 4 Sep 2005 17:41:44 +0000 Subject: [PATCH] remove obsolete piece of code - newarticletext is never written into blank pages --- includes/EditPage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 163a08ab68..a9b0581202 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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, -- 2.20.1