// fix bug from 1.4

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10435 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot committed 2011-11-22 14:59:30 +00:00
1 parent c68c8be6e8
commit 71cbc22bc0
1 file changed
+4
+4
View File
@@ -105,6 +105,10 @@ 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);
// 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).'>'; $output = $preg_matches[1].' '.implode(' ', $args).'>';
return $output; return $output;
} }