Skip to content

Commit

Permalink
feature:2114
Browse files Browse the repository at this point in the history
All combined scripts must end with ; to avoid javascript error.

git-svn-id: http://piwigo.org/svn/trunk@9606 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Mar 11, 2011
1 parent 3b08c1c commit 92b8bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/template.class.php
Expand Up @@ -1318,7 +1318,7 @@ private static function process_js($file)
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)
Expand Down

0 comments on commit 92b8bb5

Please sign in to comment.