Removing the is_windows function ... instead, use the global define PHP_OS
This commit is contained in:
@@ -1993,13 +1993,6 @@ function check_browser_version($brand="MSIE", $version=5.5) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function is_windows() {
|
||||
/// Detects whether the server is Windows
|
||||
global $CFG;
|
||||
|
||||
return strpos($CFG->dirroot, ':');
|
||||
}
|
||||
|
||||
function ini_get_bool($ini_get_arg) {
|
||||
/// This function makes the return value of ini_get consistent if you are
|
||||
/// setting server directives through the .htaccess file in apache.
|
||||
|
||||
Reference in New Issue
Block a user