Piotr Pokora wrote:
>
> 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);
Here you are using $id as an ID for article.
> 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);
And here you are using $id as an ID for topic.
I think that's your problem -- you're overusing one variable for two
completely different needs.
--
Alexander Bokovoy
He who laughs has not yet heard the bad news.
-- Bertolt Brecht
--
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]