mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
MINOR Small improvement to ini_get() check in MSSQLDatabase::__construct()
This commit is contained in:
parent
f1d6819da4
commit
2013c70090
@ -85,7 +85,7 @@ class MSSQLDatabase extends SS_Database {
|
||||
$this->dbConn = mssql_connect($parameters['server'], $parameters['username'], $parameters['password'], true);
|
||||
} else {
|
||||
// Disable default warnings as errors behaviour for sqlsrv to keep it in line with mssql functions
|
||||
if(ini_get('sqlsrv.WarningsReturnAsErrors')) {
|
||||
if(ini_get('sqlsrv.WarningsReturnAsErrors') == 'On') {
|
||||
ini_set('sqlsrv.WarningsReturnAsErrors', 'Off');
|
||||
}
|
||||
|
||||
@ -131,6 +131,7 @@ class MSSQLDatabase extends SS_Database {
|
||||
* @return boolean
|
||||
*/
|
||||
public function fullTextEnabled() {
|
||||
return false;
|
||||
if($this->fullTextEnabled === null) {
|
||||
$isInstalled = (boolean) DB::query("SELECT fulltextserviceproperty('isfulltextinstalled')")->value();
|
||||
$enabledForDb = (boolean) DB::query("
|
||||
|
Loading…
Reference in New Issue
Block a user