mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
CDN issue corrected.
This commit is contained in:
parent
187bb8f53b
commit
e9589319c6
@ -1014,7 +1014,9 @@ class e_jsmanager
|
||||
}
|
||||
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";
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user