r49965 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49964‎ | r49965 | r49966 >
Date:18:30, 27 April 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added handling of 'watch page' parameter
Modified paths:
  • /trunk/extensions/ReplaceText/ReplaceTextJob.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/ReplaceTextJob.php
@@ -35,6 +35,10 @@
3636 $reason = $this->params['edit_summary'];
3737 $create_redirect = $this->params['create_redirect'];
3838 $this->title->moveTo( $new_title, true, $reason, $create_redirect );
 39+ if ($this->params['watch_page']) {
 40+ $article = new Article($new_title);
 41+ $article->doWatch();
 42+ }
3943 $wgUser = $actual_user;
4044 } else {
4145 $article = new Article( $this->title );

Status & tagging log