Commit 955eb4f7 authored by drumm's avatar drumm
Browse files

#93078 by Frando. array_shift needs a real variable for pass by reference.

parent 3a5d412e
......@@ -72,7 +72,8 @@ function color_get_palette($theme, $default = false) {
// Fetch and expand default palette
$fields = array('base', 'link', 'top', 'bottom', 'text');
$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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment