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

5.x
Neil Drumm 2006-11-07 07:31:59 +00:00
parent 3a5d412efb
commit 955eb4f75e
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}