summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/itjs.class b/itjs.class
index b89e37a..2d9e764 100644
--- a/itjs.class
+++ b/itjs.class
@@ -139,7 +139,7 @@ function filenames($filelist)
*/
function strip($code)
{
- if (!preg_match("/^devel/", $GLOBALS['ULTRASERVERTYPE']))
+ if (!it::is_devel())
$code = preg_replace(array(
'|\s//.*$|m',
'|\s+/\*.*?\*/|s', # MUST require at least one space before "/*" (jquery.js) but MUST NOT require space before "*/" (searchmap.js)
@@ -162,7 +162,7 @@ function checksum($files = array())
foreach (array_merge($files, $service_itjs, $itools_itjs, array("$itjs/itjs.php", "$itjs/itjs.class")) as $file)
{
- if (!preg_match("/^devel/", $GLOBALS['ULTRASERVERTYPE']))
+ if (!it::is_devel())
$result += @filesize($file);
else
$result = md5($result . @file_get_contents($file));