From 737df0101a7a9b1846b3859c8578d1d870092968 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 11 Mar 2016 18:46:33 +0100 Subject: prevent double includes when jquerybuild and jquery in list --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3