Index: trunk/phase3/maintenance/edit.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | } |
38 | 38 | |
39 | 39 | public function execute() { |
40 | | - global $wgUser, $wgTitle, $wgArticle; |
| 40 | + global $wgUser, $wgArticle; |
41 | 41 | |
42 | 42 | $userName = $this->getOption( 'u', 'Maintenance script' ); |
43 | 43 | $summary = $this->getOption( 's', '' ); |
— | — | @@ -53,12 +53,12 @@ |
54 | 54 | $wgUser->addToDatabase(); |
55 | 55 | } |
56 | 56 | |
57 | | - $wgTitle = Title::newFromText( $this->getArg() ); |
58 | | - if ( !$wgTitle ) { |
| 57 | + $title = Title::newFromText( $this->getArg() ); |
| 58 | + if ( !$title ) { |
59 | 59 | $this->error( "Invalid title", true ); |
60 | 60 | } |
61 | 61 | |
62 | | - $wgArticle = new Article( $wgTitle ); |
| 62 | + $wgArticle = new Article( $title ); |
63 | 63 | |
64 | 64 | # Read the text |
65 | 65 | $text = $this->getStdin( Maintenance::STDIN_ALL ); |