r46046 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46045‎ | r46046 | r46047 >
Date:23:41, 22 January 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added handling for new 'create-redirect' parameter
Modified paths:
  • /trunk/extensions/ReplaceText/ReplaceTextJob.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/ReplaceTextJob.php
@@ -33,7 +33,8 @@
3434 $new_page_name = str_replace($this->params['target_str'], $this->params['replacement_str'], $cur_page_name);
3535 $new_title = Title::newFromText($new_page_name, $this->title->getNamespace());
3636 $reason = $this->params['edit_summary'];
37 - $this->title->moveTo($new_title, true, $reason);
 37+ $create_redirect = $this->params['create_redirect'];
 38+ $this->title->moveTo($new_title, true, $reason, $create_redirect);
3839 $wgUser = $actual_user;
3940 } else {
4041 $article = new Article($this->title);

Status & tagging log