Yaron Koren has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/135769

Change subject: Fix to get replacements in > 1000 or so pages to work
......................................................................

Fix to get replacements in > 1000 or so pages to work

Only the first 1000 or so pages will get replaced, but it's much better
than nothing...
Patch from Simon Bachenberg.

Change-Id: I12a7c3893c953befbc0a1b2306240d1d06c892f3
---
M SpecialReplaceText.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ReplaceText 
refs/changes/69/135769/1

diff --git a/SpecialReplaceText.php b/SpecialReplaceText.php
index 34c9432..ec9be86 100644
--- a/SpecialReplaceText.php
+++ b/SpecialReplaceText.php
@@ -422,7 +422,8 @@
                        $this->hiddenField( 'title', 
$this->getTitle()->getPrefixedText() ) .
                        $this->hiddenField( 'target', $this->target ) .
                        $this->hiddenField( 'replacement', $this->replacement ) 
.
-                       $this->hiddenField( 'use_regex', $this->use_regex )
+                       $this->hiddenField( 'use_regex', $this->use_regex ) .
+                       $this->hiddenField( 'replace', 1 )
                );
 
                $out->addScriptFile( 
"$wgScriptPath/extensions/ReplaceText/ReplaceText.js" );
@@ -463,8 +464,7 @@
 
                $out->addHTML(
                        "<br />\n" .
-                       Xml::submitButton( $this->msg( 'replacetext_replace' 
)->text() ) . "\n" .
-                       $this->hiddenField( 'replace', 1 )
+                       Xml::submitButton( $this->msg( 'replacetext_replace' 
)->text() ) . "\n"
                );
 
                // Only show "invert selections" link if there are more than

-- 
To view, visit https://gerrit.wikimedia.org/r/135769
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I12a7c3893c953befbc0a1b2306240d1d06c892f3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ReplaceText
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <yaro...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to