mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Avoid javascript caching from failing when the semicolon is missing from the end of a js file.
This commit is contained in:
@@ -1579,6 +1579,7 @@ class e_jsmanager
|
|||||||
{
|
{
|
||||||
$content .= "/* File: ".str_replace("../",'',$path)." */\n";
|
$content .= "/* File: ".str_replace("../",'',$path)." */\n";
|
||||||
$content .= $this->getCacheFileContent($path, $type);
|
$content .= $this->getCacheFileContent($path, $type);
|
||||||
|
$content .= ($type === 'js') ? ";" : ""; // precaution in case it is missing from a js file.
|
||||||
$content .= "\n\n";
|
$content .= "\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user