Index: trunk/phase3/maintenance/edit.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | } |
38 | 38 | |
39 | 39 | public function execute() { |
40 | | - global $wgUser; |
| 40 | + global $wgUser, $wgTitle; |
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 | | - $title = Title::newFromText( $this->getArg() ); |
58 | | - if ( !$title ) { |
| 57 | + $wgTitle = Title::newFromText( $this->getArg() ); |
| 58 | + if ( !$wgTitle ) { |
59 | 59 | $this->error( "Invalid title", true ); |
60 | 60 | } |
61 | 61 | |
62 | | - $article = new Article( $title ); |
| 62 | + $article = new Article( $wgTitle ); |
63 | 63 | |
64 | 64 | # Read the text |
65 | 65 | $text = $this->getStdin( Maintenance::STDIN_ALL ); |