r78372 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78371‎ | r78372 | r78373 >
Date:12:25, 14 December 2010
Author:ialex
Status:ok
Tags:
Comment:
Changed $wgArticle to local variable, not needed
Modified paths:
  • /trunk/phase3/maintenance/edit.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/edit.php
@@ -36,7 +36,7 @@
3737 }
3838
3939 public function execute() {
40 - global $wgUser, $wgArticle;
 40+ global $wgUser;
4141
4242 $userName = $this->getOption( 'u', 'Maintenance script' );
4343 $summary = $this->getOption( 's', '' );
@@ -58,14 +58,14 @@
5959 $this->error( "Invalid title", true );
6060 }
6161
62 - $wgArticle = new Article( $title );
 62+ $article = new Article( $title );
6363
6464 # Read the text
6565 $text = $this->getStdin( Maintenance::STDIN_ALL );
6666
6767 # Do the edit
6868 $this->output( "Saving... " );
69 - $status = $wgArticle->doEdit( $text, $summary,
 69+ $status = $article->doEdit( $text, $summary,
7070 ( $minor ? EDIT_MINOR : 0 ) |
7171 ( $bot ? EDIT_FORCE_BOT : 0 ) |
7272 ( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) |

Follow-up revisions

RevisionCommit summaryAuthorDate
r816541.17: MFT r78372, r79324, r80841, r81430, r81488, r81496, r81554, r81561, r81...catrope22:28, 7 February 2011

Status & tagging log