Hi,
I can't solve it anyway
When I walk through pages with topics everything seems to be ok but
when I open any article my page shows 'top level topic'. In pages with
topics it shows /topic/topic/topic....
the code is below:
<?
if ($argc == 1) $id = $argv[0];
if ($modify && $id) mgd_update_article($id, $topic, $name, $title,
$abstract, $content, $author, $url, $calstart, $caldays, $icon, $view,
$print, $extra1, $extra2, $extra3);
if ($id && isset($score)) mgd_update_article_score($id, $score);
if ($id && isset($approve)) mgd_approve_article($id);
if ($id) $article = mgd_get_article($id);
if ($article) $topic = $article->topic;
if ($modify && $id) mgd_update_topic($id, $name, $description, $extra,
$owner, $code);
if ($id && isset($score)) mgd_update_topic_score($id, $score);
if ($id) $topic = mgd_get_topic($id);
?>
<?
function twalk($id) {
if ($id && !mgd_is_in_topic_tree(12, $id)) $id = 0;
if (!$id || !($t = mgd_get_topic($id))) return;
twalk($t->up);
printf(' / <a href="%d.html">%s</a> ', $t->id, htmlentities($t-
>name));
}
if ($topic) { twalk($topic->up); ?> / &(topic.name); <? } else echo
'top level topic'; ?>
How to solve it?
Piotras
--
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]