Index: trunk/extensions/ReplaceText/ReplaceTextJob.php |
— | — | @@ -33,7 +33,8 @@ |
34 | 34 | $new_page_name = str_replace($this->params['target_str'], $this->params['replacement_str'], $cur_page_name); |
35 | 35 | $new_title = Title::newFromText($new_page_name, $this->title->getNamespace()); |
36 | 36 | $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); |
38 | 39 | $wgUser = $actual_user; |
39 | 40 | } else { |
40 | 41 | $article = new Article($this->title); |