summaryrefslogtreecommitdiffstats
path: root/zen
diff options
context:
space:
mode:
authorJohnAlbin2008-05-20 13:12:07 +0000
committerJohnAlbin2008-05-20 13:12:07 +0000
commit6377d2edc62958216b714614575aa5094151e8b6 (patch)
tree5f4001a7fc06b2b4d403b7dcb3d603a99b118e42 /zen
parent7dadabddd333d076e613c7bac4d427efbfd7657b (diff)
#260016: PHP 4 Parse error: syntax error, unexpected '&'6.x-1.0-beta2
Diffstat (limited to 'zen')
-rw-r--r--zen/template.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/zen/template.php b/zen/template.php
index 4df4216..9982329 100644
--- a/zen/template.php
+++ b/zen/template.php
@@ -392,7 +392,9 @@ function zen_theme(&$existing, $type, $theme, $path) {
// This function applies to every hook.
$functions[0] = $theme . '_preprocess';
// Inspect the preprocess functions for every hook in the theme registry.
- foreach ($existing AS $hook => &$value) {
+ // @TODO: When PHP 5 becomes required (Zen 7.x), use the following faster
+ // implementation: foreach ($existing AS $hook => &$value) {}
+ foreach (array_keys($existing) AS $hook) {
// Each theme has two possible preprocess functions that can act on a hook.
// This function only applies to this hook.
$functions[1] = $theme . '_preprocess_' . $hook;