Ok, hab es selber implementiert:
SiteExport.php
Zeile 842
PHP-Code:
/* copy scripts */
$strContent = preg_replace_callback('~(<script.*src=")(.*)(".*></script>)~isU', 'self::processScripts', $strContent);
Zeile 943
PHP-Code:
protected function processScripts($match)
{
if (stristr($match[1], 'type="text/javascript"') !== FALSE)
{
$src_script = TL_ROOT.'/'.$match[2];
$filename = str_replace(array('/', ' '), '_', $match[2]);
$dest_script = TL_ROOT.'/'.$this->strTargetFolder . '/' . $filename;
if (file_exists($src_script) && !file_exists($dest_script))
{
copy($src_script, $dest_script);
}
return $match[1].'./'.$filename.$match[3];
}
}
Lesezeichen