function wrapScriptTag($sPath, $bPathOnly = 0) { $sWebPath = tx_ameosformidable::toWebPath($sPath); if (intval($bPathOnly) === 1) { return $sWebPath; } return '<script type="text/javascript" src="' . $sWebPath . '"></script>'; }