summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnAlbin2009-08-14 15:50:58 (GMT)
committer JohnAlbin2009-08-14 15:50:58 (GMT)
commitd893f301a2b366b12f507b605d6ab7db2c01bf9f (patch)
tree5e0e701c1bd44b8e4dfbacf5b0dd20b706b8b7fe
parent80e41ed77cc397fc6b1ffc3806c0bcde1038ef1a (diff)
Fixed copy and paste errors related to undefined $variables
-rw-r--r--template.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/template.php b/template.php
index 95fed81..ba16003 100644
--- a/template.php
+++ b/template.php
@@ -198,8 +198,8 @@ function zen_preprocess_node(&$vars, $hook) {
$classes = array('node');
// Class for node type: "node-type-page", "node-type-story", "node-type-my-custom-type", etc.
$classes[] = zen_id_safe('node-type-' . $vars['type']);
- if ($variables['promote']) {
- $variables['classes_array'][] = 'node-promoted';
+ if ($vars['promote']) {
+ $vars['classes_array'][] = 'node-promoted';
}
if ($vars['sticky']) {
$classes[] = 'node-sticky';
@@ -217,8 +217,8 @@ function zen_preprocess_node(&$vars, $hook) {
if ($vars['teaser']) {
$classes[] = 'node-teaser'; // Node is displayed as teaser.
}
- if (isset($variables['preview'])) {
- $variables['classes_array'][] = 'node-preview';
+ if (isset($vars['preview'])) {
+ $vars['classes_array'][] = 'node-preview';
}
$vars['classes_array'] = $classes;
$vars['classes'] = implode(' ', $classes); // Concatenate with spaces