summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index dbeb5fab8..793824d06 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -14,14 +14,14 @@ function theme_init() {
function theme_link($separator = " | ") {
global $repository;
- $links = array("<A HREF=\"index.php\">". t("home") ."</A>",
- "<A HREF=\"search.php\">". t("search") ."</A>",
- "<A HREF=\"submit.php\">". t("submit") ."</A>");
- if (is_array($repository[diary]))
- $links[] = "<A HREF=\"module.php?mod=diary\">". t("diary") ."</A>";
+ $links[] = "<A HREF=\"index.php\">". t("home") ."</A>";
+ $links[] = "<A HREF=\"search.php\">". t("search") ."</A>";
+ $links[] = "<A HREF=\"submit.php\">". t("submit") ."</A>";
+ if ($repository[forum]) $links[] = "<A HREF=\"module.php?mod=forum\">".t("forum") ."</A>";
+ if ($repository[diary]) $links[] = "<A HREF=\"module.php?mod=diary\">". t("diary") ."</A>";
$links[] = "<A HREF=\"account.php\">". t("account") ."</A>";
- if (is_array($repository[diary]))
- $links[] = "<A HREF=\"module.php?mod=book\">". t("handbook") ."</A>";
+ if ($repository[book]) $links[] = "<A HREF=\"module.php?mod=book\">". t("handbook") ."</A>";
+
return implode($separator, $links);
}