From 47bdb4c295c6574c55a7caa93ab438b8664e69c0 Mon Sep 17 00:00:00 2001 From: Yaron Koren Date: Mon, 23 Apr 2018 02:25:42 +0000 Subject: [PATCH] Fix for abc67edb7046 - fixed error message Change-Id: Ib98dea476efc2d690b15095fb2abccc0be0ed82d (cherry picked from commit 7efd765c85127a2f8f021e4afaada2ebaea9c652) --- src/SpecialReplaceText.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SpecialReplaceText.php b/src/SpecialReplaceText.php index cd930002..d9b383ca 100644 --- a/src/SpecialReplaceText.php +++ b/src/SpecialReplaceText.php @@ -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( "
$errorMsg
" ); 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( "
$errorMsg
" ); return; }