public static addStaticUrlTo ( string $script ) : string | ||
$script | string | The script path |
return | string | The script path with the static URL |
public static function addStaticUrlTo($script)
{
// The feature is not used
if (TL_ASSETS_URL == '') {
return $script;
}
// Absolut URLs
if (preg_match('@^https?://@', $script)) {
return $script;
}
return TL_ASSETS_URL . $script;
}