diff options
author | Christian Weber | 2009-01-29 15:56:19 +0000 |
---|---|---|
committer | Christian Weber | 2009-01-29 15:56:19 +0000 |
commit | d2ba50a32fbd58595f0fc4c2a215922877b45776 (patch) | |
tree | 60fc3cfc87d0d6ce8541151eee2aa7f9bdb23e79 /itjs.class | |
parent | 18470949be741f34b4bd31e475aa7ab42fb01e42 (diff) | |
download | itools-d2ba50a32fbd58595f0fc4c2a215922877b45776.tar.gz itools-d2ba50a32fbd58595f0fc4c2a215922877b45776.tar.bz2 itools-d2ba50a32fbd58595f0fc4c2a215922877b45776.zip |
add it::is_devel() and it::is_live() as abstraction for $GLOBALS['ULTRASERVERTYPE']
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |