// 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:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user