- Patch #26637 by Robert Douglas: $teaser misnamed in themes theme_node().

TODO: update documentation!
4.7.x
Dries Buytaert 2005-08-07 14:55:17 +00:00
parent ed56c57ee0
commit 79f08aca2c
5 changed files with 7 additions and 7 deletions

View File

@ -514,7 +514,7 @@ function blogapi_validate_user($username, $password) {
global $user;
$user = user_authenticate($username, $password);
if ($user->uid) {
if (user_access('edit own blog', $user)) {
return $user;

View File

@ -514,7 +514,7 @@ function blogapi_validate_user($username, $password) {
global $user;
$user = user_authenticate($username, $password);
if ($user->uid) {
if (user_access('edit own blog', $user)) {
return $user;

View File

@ -464,7 +464,7 @@ function node_save($node) {
* @param $node
* A node array or node object.
* @param $teaser
* Whether to display only the teaser for the node.
* Whether to display the teaser only, as on the main page.
* @param $page
* Whether the node is being displayed by itself as a page.
* @param $links

View File

@ -464,7 +464,7 @@ function node_save($node) {
* @param $node
* A node array or node object.
* @param $teaser
* Whether to display only the teaser for the node.
* Whether to display the teaser only, as on the main page.
* @param $page
* Whether the node is being displayed by itself as a page.
* @param $links

View File

@ -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 {