Browse Source

ISLANDORA-450 Function renamed, moved to utilities.inc; now returns boolean.

pull/450/head
Stefan Langer 11 years ago
parent
commit
ba90b6b0ea
  1. 14
      includes/utilities.inc
  2. 14
      islandora.module

14
includes/utilities.inc

@ -981,3 +981,17 @@ function islandora_scale_thumbnail($file, $width, $height) {
} }
return FALSE; 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;
}

14
islandora.module

@ -1865,17 +1865,3 @@ function islandora_islandora_datastream_access($op, AbstractDatastream $datastre
} }
return $result; 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';
}

Loading…
Cancel
Save