1
0
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:
CaMer0n 2012-07-15 10:13:25 +00:00
parent 187bb8f53b
commit e9589319c6

View File

@ -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;
}