From c626e16bc3e7cc669cb919acf90ce6cc8df530a8 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 19 Dec 2011 15:20:53 +0000 Subject: dont include same path twice --- itjs.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'itjs.class') diff --git a/itjs.class b/itjs.class index 71f6b2a..91ebd74 100644 --- a/itjs.class +++ b/itjs.class @@ -133,7 +133,8 @@ function filenames($filelist) $filenames = $special[$file] ? $special[$file] : "$path/$file"; foreach (explode(",", $filenames) as $filename) - $result[] = $filename; + if (!$seen[$filename]++) + $result[] = $filename; } return $result; -- cgit v1.2.3