// fix bug from 1.4
This commit is contained in:
1 parent
2670773901
commit
dc4aeef20a
1 file changed
+5
-1
+5
-1
@@ -105,7 +105,11 @@ class MediaCore
|
|||||||
preg_match_all('/[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']/is', $preg_matches[2], $args);
|
preg_match_all('/[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']/is', $preg_matches[2], $args);
|
||||||
$args = $args[0];
|
$args = $args[0];
|
||||||
sort($args);
|
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;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user