remove obsolete piece of code - newarticletext is never written into blank
pages
This commit is contained in:
parent
d138f74c78
commit
8fb1491404
1 changed files with 2 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue