From ba90b6b0ea32a3723b5f5893bcb46cf7ce12006d Mon Sep 17 00:00:00 2001 From: Stefan Langer Date: Wed, 29 Jan 2014 11:11:12 -0500 Subject: [PATCH] ISLANDORA-450 Function renamed, moved to utilities.inc; now returns boolean. --- includes/utilities.inc | 14 ++++++++++++++ islandora.module | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) 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'; -}