mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-15 02:53:52 +00:00
Follow-up to d7db166e4f
- disable regex option for MSSQL as well
Change-Id: Ib859e5b9104b9b9d6909024585b0573695f72f6d
This commit is contained in:
parent
9ea086b4c0
commit
f164113698
|
@ -442,10 +442,11 @@ class SpecialReplaceText extends SpecialPage {
|
|||
);
|
||||
$out->addHTML( '</td></tr></table>' );
|
||||
|
||||
// SQLite unfortunately lacks a REGEXP function or operator by
|
||||
// default, so disable regex(p) searches for SQLite.
|
||||
// MSSQL/SQLServer and SQLite unfortunately lack a REGEXP
|
||||
// function or operator by default, so disable regex(p)
|
||||
// searches for both these DB types.
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
if ( $dbr->getType() != 'sqlite' ) {
|
||||
if ( $dbr->getType() != 'sqlite' && $dbr->getType() != 'mssql' ) {
|
||||
$out->addHTML( Xml::tags( 'p', null,
|
||||
Xml::checkLabel(
|
||||
$this->msg( 'replacetext_useregex' )->text(),
|
||||
|
|
Loading…
Reference in a new issue