Follow-up to d7db166e4f - disable regex option for MSSQL as well

Change-Id: Ib859e5b9104b9b9d6909024585b0573695f72f6d
This commit is contained in:
Yaron Koren 2018-05-10 16:24:52 +00:00
parent 9ea086b4c0
commit f164113698

View file

@ -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(),