Revision: 46046
Author:   yaron
Date:     2009-01-22 23:41:02 +0000 (Thu, 22 Jan 2009)

Log Message:
-----------
Added handling for new 'create-redirect' parameter

Modified Paths:
--------------
    trunk/extensions/ReplaceText/ReplaceTextJob.php

Modified: trunk/extensions/ReplaceText/ReplaceTextJob.php
===================================================================
--- trunk/extensions/ReplaceText/ReplaceTextJob.php     2009-01-22 23:40:30 UTC 
(rev 46045)
+++ trunk/extensions/ReplaceText/ReplaceTextJob.php     2009-01-22 23:41:02 UTC 
(rev 46046)
@@ -33,7 +33,8 @@
                        $new_page_name = 
str_replace($this->params['target_str'], $this->params['replacement_str'], 
$cur_page_name);
                        $new_title = Title::newFromText($new_page_name, 
$this->title->getNamespace());
                        $reason = $this->params['edit_summary'];
-                       $this->title->moveTo($new_title, true, $reason);
+                       $create_redirect = $this->params['create_redirect'];
+                       $this->title->moveTo($new_title, true, $reason, 
$create_redirect);
                        $wgUser = $actual_user;
                } else {
                        $article = new Article($this->title);



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to