aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/edit.php
diff options
context:
space:
mode:
authorMax Semenik <maxsem@users.mediawiki.org>2010-05-27 18:04:08 +0000
committerMax Semenik <maxsem@users.mediawiki.org>2010-05-27 18:04:08 +0000
commit1777ebaa373402a2b40551b2af7f283b4f345378 (patch)
tree17e3e811335b16b7b2d578554e53b9c522b5f47b /maintenance/edit.php
parent8d51ba432c241c6227df12c6521f0e46c61fdacc (diff)
downloadmediawikicore-1777ebaa373402a2b40551b2af7f283b4f345378.tar.gz
mediawikicore-1777ebaa373402a2b40551b2af7f283b4f345378.zip
edit.php: got rid of $wgTitle
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66977
Diffstat (limited to 'maintenance/edit.php')
-rw-r--r--maintenance/edit.php8
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 );