summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class11
1 files changed, 3 insertions, 8 deletions
diff --git a/itjs.class b/itjs.class
index e8284ce..d9db666 100644
--- a/itjs.class
+++ b/itjs.class
@@ -158,7 +158,7 @@ static function strip($code)
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)
+ '|\s+/\*.*?\*/|s', # MUST require at least one space before /* (jquery.js) but MUST NOT require space before */ (searchmap.js)
'|^\s+|m'
), array(), $code);
if (EDC('print'))
@@ -179,14 +179,9 @@ static function checksum($files = array())
$service_itjs = glob($GLOBALS['ULTRAHOME'] . "/itjs/*.{js,css,php}", GLOB_BRACE);
foreach (array_merge($files, $service_itjs, $itools_itjs, array("$itjs/itjs.php", "$itjs/itjs.class")) as $file)
- {
- if (!it::is_devel())
- $result += @filesize($file);
- else
- $result = md5($result . @file_get_contents($file));
- }
+ $allfiles .= $file;
- return $result;
+ return substr(md5($allfiles), 0, 8); # UTF8SAFE
}
}