> >>  if ($argc == 1) $tid = $argv[0];
> >>  if ($tid && !mgd_is_in_topic_tree(12,$tid)) $tid = 0;
> >>  if ($tid) $topic = mgd_get_topic($tid);
> 
> Am I to change 12 for $tid?
> If I do it the product site points to root page :(

That may be caused by $tid being 0, which will happen if the page isn't
active (hence $argv/$argc will not be set), no parameter was passed to the
active page, an parameter was passed but no topic with that ID exists, or
the topic exists but is not a child (x times removed) from topic 12.

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to