At line 60, there is the following:

  if ($node->type) {
    $body_classes[] = $node->type;
  }

However, $node is never loaded before this. The consequence is only the class "node" gets added to node types, not "forum" or "blog" etc.

Attached is a patch that loads the node first and then checks for $node->type.

CommentFileSizeAuthor
template.php_2.patch848 byteswebchick
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Status: Active » Needs review

...and that would be a patch.