diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-08-07 14:55:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-08-07 14:55:17 +0000 |
commit | 79f08aca2c29c9f2bf8fd7514b0eab20b8e90711 (patch) | |
tree | 92caf8688816e5571a09b73667baf98f4fee6e7d /themes | |
parent | ed56c57ee0d76215e7021bcaedd36af6992f9303 (diff) | |
download | brdo-79f08aca2c29c9f2bf8fd7514b0eab20b8e90711.tar.gz brdo-79f08aca2c29c9f2bf8fd7514b0eab20b8e90711.tar.bz2 |
- Patch #26637 by Robert Douglas: $teaser misnamed in themes theme_node().
TODO: update documentation!
Diffstat (limited to 'themes')
-rw-r--r-- | themes/chameleon/chameleon.theme | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/chameleon/chameleon.theme b/themes/chameleon/chameleon.theme index 26b380ca4..cc0dce0b2 100644 --- a/themes/chameleon/chameleon.theme +++ b/themes/chameleon/chameleon.theme @@ -107,17 +107,17 @@ function chameleon_page($content) { return $output; } -function chameleon_node($node, $main = 0, $page = 0) { +function chameleon_node($node, $teaser = 0, $page = 0) { $output = "<div class=\"node\">\n"; if (!$page) { - $output .= " <h2 class=\"title\">". ($main ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."</h2>\n"; + $output .= " <h2 class=\"title\">". ($teaser ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."</h2>\n"; } $output .= " <div class=\"content\">\n"; - if ($main && $node->teaser) { + if ($teaser && $node->teaser) { $output .= $node->teaser; } else { |