Index: trunk/extensions/ReplaceText/SpecialReplaceText.php |
— | — | @@ -66,6 +66,12 @@ |
67 | 67 | $replacement_params['target_str'] = $target_str; |
68 | 68 | $replacement_params['replacement_str'] = $replacement_str; |
69 | 69 | $replacement_params['edit_summary'] = wfMsgForContent('replacetext_editsummary', $target_str, $replacement_str); |
| 70 | + $replacement_params['create_redirect'] = false; |
| 71 | + foreach ($wgRequest->getValues() as $key => $value) { |
| 72 | + if ($key == 'create-redirect' && $value == '1') { |
| 73 | + $replacement_params['create_redirect'] = true; |
| 74 | + } |
| 75 | + } |
70 | 76 | $jobs = array(); |
71 | 77 | foreach ($wgRequest->getValues() as $key => $value) { |
72 | 78 | if ($value == '1') { |
— | — | @@ -238,11 +244,13 @@ |
239 | 245 | $text .= " " . $skin->makeLinkObj( $title, $title->prefix($title->getText()) ) . " - <small>$context_str</small><br />\n"; |
240 | 246 | } |
241 | 247 | if (count($titles_for_move) > 0) { |
242 | | - $text .= "<p>$choose_pages_for_move_label</p>\n"; |
| 248 | + $text .= "<br />\n<p>$choose_pages_for_move_label</p>\n"; |
243 | 249 | foreach ($titles_for_move as $title) { |
244 | 250 | $text .= Xml::check('move-' . $title->getArticleID(), true); |
245 | 251 | $text .= " " . $skin->makeLinkObj( $title, $title->prefix($title->getText()) ) . "<br />\n"; |
246 | 252 | } |
| 253 | + $text .= '<p>' . wfMsg('replacetext_savemovedpages') . wfMsg('colon-separator'); |
| 254 | + $text .= Xml::check('create-redirect', true) . "</p>\n"; |
247 | 255 | } |
248 | 256 | $text .=<<<END |
249 | 257 | <p><input type="Submit" name="replace" value="$replace_label"></p> |