update array fonction for php compatibility
This commit is contained in:
parent
c5948f6e68
commit
21cf291991
@ -36,8 +36,8 @@ if (Configuration::get('PS_JS_HTML_THEME_COMPRESSION'))
|
||||
$smarty->registerPlugin("function","printCouleur", "print_couleur");
|
||||
|
||||
function print_couleur($params, $smarty) {
|
||||
$colors = ['#d2e1e6', '#d7e9e7', '#ebd1dc',
|
||||
'#ddd6e1', '#efd2d4', '#ebebd9'];
|
||||
$colors = array('#d2e1e6', '#d7e9e7', '#ebd1dc',
|
||||
'#ddd6e1', '#efd2d4', '#ebebd9');
|
||||
return $colors[array_rand($colors)];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user