From 92b8bb54a0744c4d1b8f793a9ea2ddc68689c8f0 Mon Sep 17 00:00:00 2001 From: patdenice Date: Fri, 11 Mar 2011 09:07:59 +0000 Subject: feature:2114 All combined scripts must end with ; to avoid javascript error. git-svn-id: http://piwigo.org/svn/trunk@9606 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/template.class.php b/include/template.class.php index e2e7b8786..1536e8f7a 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -1318,7 +1318,7 @@ final class FileCombiner require_once(PHPWG_ROOT_PATH.'include/jsmin.class.php'); try { $js = JSMin::minify($js); } catch(Exception $e) {} } - return $js; + return trim($js, " \t\r\n;").";\n"; } private static function process_css($file) -- cgit v1.2.3