hi guys!
was starting to play with custom templates for diff. node types. for og templates i tried to use page.tpl.php, supplied with module. but when i tried to use it following error came up :

warning: Invalid argument supplied for foreach() in /home/mugu/public_html/includes/common.inc on line 1331.

i reported it here http://drupal.org/node/15467

i played around a little bit and saw that there is an error on following line:

            $og_links[] = l($node->og_groups_names[$ind], 'node/', $node->og_groups[$ind]);

alast to argument should be concatenated with dot, and not seperated by comma.

            $og_links[] = l($node->og_groups_names[$ind], 'node/'.$node->og_groups[$ind]);

after that everything works nice

:)

Comments

moshe weitzman’s picture

Title: error in page.tpl.php » error in node.tpl.php
Component: Code » og.module
Status: Reviewed & tested by the community » Closed (fixed)

huh - those two lines are the same, no? also, you mean node.tpl.php

pleae reopen with more detail.

morbus iff’s picture

Status: Closed (fixed) » Needs review

Moshe: one is a concat, the other isn't.

moshe weitzman’s picture

Status: Needs review » Fixed

thanks morbus ... apparently i can't read today.

Anonymous’s picture

Status: Fixed » Closed (fixed)