diff --git a/lang/en/install.php b/lang/en/install.php index e3085a15c35..547e9c184a3 100644 --- a/lang/en/install.php +++ b/lang/en/install.php @@ -194,7 +194,6 @@ $string['nativesqlsrv'] = 'SQL*Server Microsoft (native/sqlsrv)'; $string['nativesqlsrvhelp'] = 'Now you need to configure the database where most Moodle data will be stored. This database must already have been created and a username and password created to access it. Table prefix is mandatory.'; $string['nativesqlsrvnodriver'] = 'Microsoft Drivers for SQL Server for PHP are not installed or not configured properly.'; -$string['nativesqlsrvnonwindows'] = 'Microsoft Drivers for SQL Server for PHP are available only for Windows OS.'; $string['ociextensionisnotpresentinphp'] = 'PHP has not been properly configured with the OCI8 extension so that it can communicate with Oracle. Please check your php.ini file or recompile PHP.'; $string['pass'] = 'Pass'; $string['paths'] = 'Paths'; diff --git a/lib/dml/sqlsrv_native_moodle_database.php b/lib/dml/sqlsrv_native_moodle_database.php index 5de4ff06d88..06e6d77f0ed 100644 --- a/lib/dml/sqlsrv_native_moodle_database.php +++ b/lib/dml/sqlsrv_native_moodle_database.php @@ -69,11 +69,7 @@ class sqlsrv_native_moodle_database extends moodle_database { // the name used by 'extension_loaded()' is case specific! The extension // therefore *could be* mixed case and hence not found. if (!function_exists('sqlsrv_num_rows')) { - if (stripos(PHP_OS, 'win') === 0) { - return get_string('nativesqlsrvnodriver', 'install'); - } else { - return get_string('nativesqlsrvnonwindows', 'install'); - } + return get_string('nativesqlsrvnodriver', 'install'); } return true; }