mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-12-18 17:23:11 +00:00
Merge "Fix for abc67edb70
- fixed error message" into REL1_31
This commit is contained in:
commit
441b25f47a
|
@ -33,14 +33,14 @@ class SpecialReplaceText extends SpecialPage {
|
|||
}
|
||||
|
||||
// Replace Text can't be run with certain settings, due to the
|
||||
// changes they make to DB storage.
|
||||
// changes they make to the DB storage setup.
|
||||
if ( $wgCompressRevisions ) {
|
||||
$errorMsg = "Error: text replacements cannot be run if \$wgCompressRevisions is set to true.";
|
||||
$this->getOutput()->addWikiText( "<div class=\"errorbox\">$errorMsg</div>" );
|
||||
return;
|
||||
}
|
||||
if ( $wgExternalStores ) {
|
||||
$errorMsg = "Error: text replacements cannot be run if \$wgExternalStores is set to true.";
|
||||
if ( !empty( $wgExternalStores ) ) {
|
||||
$errorMsg = "Error: text replacements cannot be run if \$wgExternalStores is non-empty.";
|
||||
$this->getOutput()->addWikiText( "<div class=\"errorbox\">$errorMsg</div>" );
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue