summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2016-03-11 18:46:33 +0100
committerUrban Müller2016-03-11 18:46:33 +0100
commit737df0101a7a9b1846b3859c8578d1d870092968 (patch)
tree5ac298d5e6bf79c2498d681da89d0e7c18fb8c82
parent3ba223501a61a1bb607a529ce8023dd7b4478116 (diff)
downloaditools-737df0101a7a9b1846b3859c8578d1d870092968.tar.gz
itools-737df0101a7a9b1846b3859c8578d1d870092968.tar.bz2
itools-737df0101a7a9b1846b3859c8578d1d870092968.zip
prevent double includes when jquerybuild and jquery in list
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 9b6cee0..145cb82 100644
--- a/itjs.class
+++ b/itjs.class
@@ -157,7 +157,7 @@ static function filecontents($filenames)
list($filename, $paramstr) = explode("?", $filename);
if ($paramstr)
parse_str($paramstr, $_GET);
- $result .= it::replace(array('^1$' => ""), it::match('\.(js|css)$', $filename) ? include($filename) : file_get_contents($filename), array('utf8' => false));
+ $result .= it::replace(array('^1$' => ""), it::match('\.(js|css)$', $filename) ? include_once($filename) : file_get_contents($filename), array('utf8' => false));
$_GET = $origget;
}
$result .= ob_get_clean();