diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-12-30 11:58:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-12-30 11:58:14 +0000 |
commit | 44c48004346e5956cefbd5ebd558a4406cc61253 (patch) | |
tree | 174d686bc2fd83da9930f6bf20de9864ef34e71c /includes/widget.inc | |
parent | 83f6495c9aa810a884b7ca2c44d19f3f32b6092a (diff) | |
download | brdo-44c48004346e5956cefbd5ebd558a4406cc61253.tar.gz brdo-44c48004346e5956cefbd5ebd558a4406cc61253.tar.bz2 |
- here a bunch of changes to make "drupal" (for now) work with PHP 4.0.4
- tidied up some of the code and mainly working on the documentation
Diffstat (limited to 'includes/widget.inc')
-rw-r--r-- | includes/widget.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/widget.inc b/includes/widget.inc index ffb883334..a42b11e54 100644 --- a/includes/widget.inc +++ b/includes/widget.inc @@ -10,7 +10,7 @@ function display_account($theme) { return ($result) ? db_result($result, 0) : 0; } - ### Display account settings: + // Display account settings: $content .= "<LI><A HREF=\"account.php?op=track&topic=comments\">track your comments</A></LI>\n"; $content .= "<LI><A HREF=\"account.php?op=track&topic=stories\">track your stories</A></LI>\n"; $content .= "<LI><A HREF=\"account.php?op=track&topic=site\">track $site_name</A></LI>\n"; @@ -91,7 +91,7 @@ function display_moderation_results($theme, $story) { } function display_related_links($theme, $story) { - ### Parse story for <A HREF="">-tags: + // Parse story for <A HREF="">-tags: $text = stripslashes("$story->abstract $story->updates $story->article"); while ($text = stristr($text, "<A HREF=")) { $link = substr($text, 0, strpos(strtolower($text), "</a>") + 4); @@ -99,10 +99,10 @@ function display_related_links($theme, $story) { if (!stristr($link, "mailto:")) $content .= "<LI>$link</LI>"; } - ### Stories in the same category: + // Stories in the same category: $content .= " <LI>More about <A HREF=\"search.php?category=". urlencode($story->category) ."\">$story->category</A>.</LI>"; - ### Stories from the same author: + // Stories from the same author: if ($story->userid) $content .= " <LI>Also by <A HREF=\"search.php?author=". urlencode($story->userid) ."\">$story->userid</A>.</LI>"; $theme->box("Related links", $content); |