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