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
This commit is contained in:
yaron 2014-05-28 18:35:10 +04:00
parent 423d6579dd
commit 1b721575bd

View file

@ -422,7 +422,8 @@ class ReplaceText extends SpecialPage {
$this->hiddenField( 'title', $this->getTitle()->getPrefixedText() ) . $this->hiddenField( 'title', $this->getTitle()->getPrefixedText() ) .
$this->hiddenField( 'target', $this->target ) . $this->hiddenField( 'target', $this->target ) .
$this->hiddenField( 'replacement', $this->replacement ) . $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" ); $out->addScriptFile( "$wgScriptPath/extensions/ReplaceText/ReplaceText.js" );
@ -463,8 +464,7 @@ class ReplaceText extends SpecialPage {
$out->addHTML( $out->addHTML(
"<br />\n" . "<br />\n" .
Xml::submitButton( $this->msg( 'replacetext_replace' )->text() ) . "\n" . Xml::submitButton( $this->msg( 'replacetext_replace' )->text() ) . "\n"
$this->hiddenField( 'replace', 1 )
); );
// Only show "invert selections" link if there are more than // Only show "invert selections" link if there are more than