diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 68c2d5adf..b01638d60 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -27,7 +27,7 @@ function theme_init() { } function theme_link() { - global $theme; + global $user, $theme; $links[] = array("index.php", t("home")); $links[] = array("search.php", t("search")); $links[] = array("submit.php", t("submit")); @@ -37,10 +37,6 @@ function theme_link() { if (module_hook($name, "page")) $links[] = array("module.php?mod=$name", t($name)); } -// if (module_exist("forum")) $links[] = "<A HREF=\"module.php?mod=forum\">".t("forum") ."</A>"; -// if (module_exist("diary")) $links[] = "<A HREF=\"module.php?mod=diary\">". t("diary") ."</A>"; -// if (module_exist("book")) $links[] = "<A HREF=\"module.php?mod=book\">". t("handbook") ."</A>"; - return $theme->links($links, 2); } |