// fix bug from 1.4

This commit is contained in:
vChabot
2011-11-22 14:59:30 +00:00
parent 2670773901
commit dc4aeef20a
+5 -1
View File
@@ -105,7 +105,11 @@ class MediaCore
preg_match_all('/[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']/is', $preg_matches[2], $args);
$args = $args[0];
sort($args);
$output = $preg_matches[1].' '.implode(' ', $args).'>';
// if there is no args in the balise, we don't write a space (avoid previous : <title >, now : <title>)
if (empty($args))
$output = $preg_matches[1].'>';
else
$output = $preg_matches[1].' '.implode(' ', $args).'>';
return $output;
}