From: moodler Date: Sat, 14 Feb 2004 02:49:56 +0000 (+0000) Subject: Removing the is_windows function ... instead, use the global define PHP_OS X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f6f62cbdbcfe0fb9e3f5d41003dc620a23611d4;p=moodle.git Removing the is_windows function ... instead, use the global define PHP_OS --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index c20f6346c9..e1e38b9cc9 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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.