From: Max Semenik Date: Thu, 27 May 2010 18:04:08 +0000 (+0000) Subject: edit.php: got rid of $wgTitle X-Git-Tag: 1.31.0-rc.0~36693 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=1777ebaa373402a2b40551b2af7f283b4f345378;p=lhc%2Fweb%2Fwiklou.git edit.php: got rid of $wgTitle --- diff --git a/maintenance/edit.php b/maintenance/edit.php index 500af5a381..7e4b2f7f75 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -36,7 +36,7 @@ class EditCLI extends Maintenance { } public function execute() { - global $wgUser, $wgTitle, $wgArticle; + global $wgUser, $wgArticle; $userName = $this->getOption( 'u', 'Maintenance script' ); $summary = $this->getOption( 's', '' ); @@ -53,12 +53,12 @@ class EditCLI extends Maintenance { $wgUser->addToDatabase(); } - $wgTitle = Title::newFromText( $this->getArg() ); - if ( !$wgTitle ) { + $title = Title::newFromText( $this->getArg() ); + if ( !$title ) { $this->error( "Invalid title", true ); } - $wgArticle = new Article( $wgTitle ); + $wgArticle = new Article( $title ); # Read the text $text = $this->getStdin( Maintenance::STDIN_ALL );