r10902 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10901‎ | r10902 | r10903 >
Date:17:41, 4 September 2005
Author:eloquence
Status:old
Tags:
Comment:
remove obsolete piece of code - newarticletext is never written into blank
pages
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -479,12 +479,11 @@
480480 $aid = $this->mTitle->getArticleID( GAID_FOR_UPDATE );
481481 if ( 0 == $aid ) {
482482 # Don't save a new article if it's blank.
483 - if ( ( '' == $this->textbox1 ) ||
484 - ( wfMsg( 'newarticletext' ) == $this->textbox1 ) ) {
 483+ if ( ( '' == $this->textbox1 ) ) {
485484 $wgOut->redirect( $this->mTitle->getFullURL() );
486485 wfProfileOut( $fname );
487486 return false;
488 - }
 487+ }
489488
490489 $isComment=($this->section=='new');
491490 $this->mArticle->insertNewArticle( $this->textbox1, $this->summary,

Status & tagging log