Index: trunk/phase3/maintenance/edit.php |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | } |
38 | 38 | |
39 | 39 | public function execute() { |
40 | | - global $wgUser, $wgArticle; |
| 40 | + global $wgUser; |
41 | 41 | |
42 | 42 | $userName = $this->getOption( 'u', 'Maintenance script' ); |
43 | 43 | $summary = $this->getOption( 's', '' ); |
— | — | @@ -58,14 +58,14 @@ |
59 | 59 | $this->error( "Invalid title", true ); |
60 | 60 | } |
61 | 61 | |
62 | | - $wgArticle = new Article( $title ); |
| 62 | + $article = new Article( $title ); |
63 | 63 | |
64 | 64 | # Read the text |
65 | 65 | $text = $this->getStdin( Maintenance::STDIN_ALL ); |
66 | 66 | |
67 | 67 | # Do the edit |
68 | 68 | $this->output( "Saving... " ); |
69 | | - $status = $wgArticle->doEdit( $text, $summary, |
| 69 | + $status = $article->doEdit( $text, $summary, |
70 | 70 | ( $minor ? EDIT_MINOR : 0 ) | |
71 | 71 | ( $bot ? EDIT_FORCE_BOT : 0 ) | |
72 | 72 | ( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) | |