mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
CDN issue corrected.
This commit is contained in:
@@ -1014,7 +1014,9 @@ class e_jsmanager
|
|||||||
}
|
}
|
||||||
if($external)
|
if($external)
|
||||||
{
|
{
|
||||||
echo '<script type="text/javascript" src="'.$tp->replaceConstants($path, 'abs').'?'.$this->getCacheId().'"></script>';
|
// Never use CacheID on a CDN script.
|
||||||
|
$src = (substr($path,0,4)=='http') ? $path : $tp->replaceConstants($path, 'abs').'?'.$this->getCacheId();
|
||||||
|
echo '<script type="text/javascript" src="'.$src.'"></script>';
|
||||||
echo "\n";
|
echo "\n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user