mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 09:10:23 +02:00
Fixes #4737 Removal of type="text/javascript" and type="text/css"
This commit is contained in:
@@ -306,9 +306,10 @@ global $footer_js;
|
||||
if (isset($footer_js) && is_array($footer_js))
|
||||
{
|
||||
$footer_js = array_unique($footer_js);
|
||||
|
||||
foreach ($footer_js as $fname)
|
||||
{
|
||||
echo "<script type='text/javascript' src='{$fname}'></script>\n";
|
||||
echo "<script src='{$fname}'></script>\n";
|
||||
$js_included[] = $fname;
|
||||
}
|
||||
}
|
||||
@@ -384,7 +385,8 @@ if (abs($_serverTime - $lastSet) > 120)
|
||||
* Benefit: account for user time corrections and changes in internet delays
|
||||
* Drawback: each update may cause all server times to display a bit different
|
||||
*/
|
||||
echo "<script type='text/javascript'>\n";
|
||||
|
||||
echo "<script>\n";
|
||||
echo " SyncWithServerTime('', '{$_serverPath}', '{$_serverDomain}');\n";
|
||||
//tdOffset disabled as it can't live together with HTTP_IF_NONE_MATCH (page load speed)
|
||||
//echo " SyncWithServerTime('{$_serverTime}', '{$_serverPath}', '{$_serverDomain}');\n";
|
||||
|
Reference in New Issue
Block a user