Project

General

Profile

Feature #14870 » 1294_trunk_v2.diff

Administrator Admin, 2010-06-05 08:58

View differences:

t3lib/class.t3lib_parsehtml.php (working copy)
*/
function prefixResourcePath($main_prefix,$content,$alternatives=array(),$suffix='') {
$parts = $this->splitTags('embed,td,table,body,img,input,form,link,script,a',$content);
$parts = $this->splitTags('embed,td,table,body,img,input,form,link,script,a,param',$content);
foreach ($parts as $k => $v) {
if ($k%2) {
$params = $this->get_tag_attributes($v);
......
$somethingDone=1;
}
break;
// value attribute
case 'param':
$test = $params[0]['name'];
if ($test && $test === 'movie') {
if ($params[0]['value']) {
$params[0]['value'] = $this->prefixRelPath($prefix, $params[0]['value'], $suffix);
$somethingDone = 1;
}
}
break;
}
if ($somethingDone) {
$tagParts = preg_split('/\s+/s',$v,2);
(2-2/2)