#93078 by Frando. array_shift needs a real variable for pass by reference.
parent
3a5d412efb
commit
955eb4f75e
|
@ -72,7 +72,8 @@ function color_get_palette($theme, $default = false) {
|
||||||
// Fetch and expand default palette
|
// Fetch and expand default palette
|
||||||
$fields = array('base', 'link', 'top', 'bottom', 'text');
|
$fields = array('base', 'link', 'top', 'bottom', 'text');
|
||||||
$info = color_get_info($theme);
|
$info = color_get_info($theme);
|
||||||
foreach (explode(',', array_shift(array_keys($info['schemes']))) as $k => $scheme) {
|
$keys = array_keys($info['schemes']);
|
||||||
|
foreach (explode(',', array_shift($keys)) as $k => $scheme) {
|
||||||
$palette[$fields[$k]] = $scheme;
|
$palette[$fields[$k]] = $scheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue