1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Avoid javascript caching from failing when the semicolon is missing from the end of a js file.

This commit is contained in:
Cameron 2020-12-02 15:53:12 -08:00
parent 5770aa8bbb
commit 3491d7c832

View File

@ -1579,6 +1579,7 @@ class e_jsmanager
{
$content .= "/* File: ".str_replace("../",'',$path)." */\n";
$content .= $this->getCacheFileContent($path, $type);
$content .= ($type === 'js') ? ";" : ""; // precaution in case it is missing from a js file.
$content .= "\n\n";
}