diff options
author | Urban Müller | 2016-03-11 18:46:33 +0100 |
---|---|---|
committer | Urban Müller | 2016-03-11 18:46:33 +0100 |
commit | 737df0101a7a9b1846b3859c8578d1d870092968 (patch) | |
tree | 5ac298d5e6bf79c2498d681da89d0e7c18fb8c82 | |
parent | 3ba223501a61a1bb607a529ce8023dd7b4478116 (diff) | |
download | itools-737df0101a7a9b1846b3859c8578d1d870092968.tar.gz itools-737df0101a7a9b1846b3859c8578d1d870092968.tar.bz2 itools-737df0101a7a9b1846b3859c8578d1d870092968.zip |
prevent double includes when jquerybuild and jquery in list
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |