diff --git a/includes/utilities.inc b/includes/utilities.inc index d858ff0c..0710f8f3 100644 --- a/includes/utilities.inc +++ b/includes/utilities.inc @@ -981,3 +981,17 @@ function islandora_scale_thumbnail($file, $width, $height) { } return FALSE; } + +/** + * Determines if the server operating system is Windows. + * + * @return bool + * TRUE if Windows, FALSE otherwise. + */ +function islandora_deployed_on_windows() { + // Determine if PHP is currently running on Windows. + if (strpos(strtolower(php_uname('s')), 'windows') !== FALSE) { + return TRUE; + } + return FALSE; +} diff --git a/islandora.module b/islandora.module index 15ef0a88..99a5740b 100644 --- a/islandora.module +++ b/islandora.module @@ -1865,17 +1865,3 @@ function islandora_islandora_datastream_access($op, AbstractDatastream $datastre } return $result; } - -/** - * Determines the server's operating system. - * - * @return string - * The name of the operating system being used. - */ -function islandora_os_check() { - // Determine if PHP is currently running on Windows. - if (strpos(strtolower(php_uname('s')), 'windows') !== FALSE) { - return 'Windows'; - } - return 'Linux'; -}