mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-15 10:59:28 +00:00
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:
parent
423d6579dd
commit
1b721575bd
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue