Index: trunk/phase3/maintenance/edit.php |
— | — | @@ -58,14 +58,14 @@ |
59 | 59 | $this->error( "Invalid title", true ); |
60 | 60 | } |
61 | 61 | |
62 | | - $article = new Article( $wgTitle ); |
| 62 | + $page = WikiPage::factory( $wgTitle ); |
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 = $article->doEdit( $text, $summary, |
| 69 | + $status = $page->doEdit( $text, $summary, |
70 | 70 | ( $minor ? EDIT_MINOR : 0 ) | |
71 | 71 | ( $bot ? EDIT_FORCE_BOT : 0 ) | |
72 | 72 | ( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) | |