diff options
Diffstat (limited to 'maintenance/edit.php')
-rw-r--r-- | maintenance/edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/maintenance/edit.php b/maintenance/edit.php index 500af5a38127..7e4b2f7f750e 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 ); |