mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-23 22:33:48 +00:00
Remove MSSQL support
Bug: T283021 Change-Id: I27a55958cb8bb25cf6dafbc4dcd4054113bb5fd8
This commit is contained in:
parent
0d65a6b322
commit
22b1fc0725
|
@ -458,11 +458,11 @@ class SpecialReplaceText extends SpecialPage {
|
|||
);
|
||||
$out->addHTML( '</td></tr></table>' );
|
||||
|
||||
// MSSQL/SQLServer and SQLite unfortunately lack a REGEXP
|
||||
// SQLite unfortunately lack a REGEXP
|
||||
// function or operator by default, so disable regex(p)
|
||||
// searches for both these DB types.
|
||||
// searches that DB type.
|
||||
$dbr = wfGetDB( DB_REPLICA );
|
||||
if ( $dbr->getType() != 'sqlite' && $dbr->getType() != 'mssql' ) {
|
||||
if ( $dbr->getType() != 'sqlite' ) {
|
||||
$out->addHTML( Xml::tags( 'p', null,
|
||||
Xml::checkLabel(
|
||||
$this->msg( 'replacetext_useregex' )->text(),
|
||||
|
|
Loading…
Reference in a new issue