Browse Source

Merge pull request #450 from slangerx/7.x

Windows-compatibility: New function for OS detection
pull/455/merge
Nick Ruest 11 years ago
parent
commit
97ba51808f
  1. 14
      includes/utilities.inc

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;
}

Loading…
Cancel
Save