Commit 800a58f5 authored by Dries's avatar Dries

- Removed duplicated code.  Reported by Goba.
parent f10cf475
......@@ -194,18 +194,6 @@ function archive_link($type) {
}
}
if ($type == "system") {
if (user_access("access content")) {
menu("archive", t("archives"), "archive_page", 0, 1);
}
}
if ($type == "system") {
if (user_access("access content")) {
menu("archive", t("archives"), "archive_page", 0, 1);
}
}
return $links;
}
......
......@@ -194,18 +194,6 @@ function archive_link($type) {
}
}
if ($type == "system") {
if (user_access("access content")) {
menu("archive", t("archives"), "archive_page", 0, 1);
}
}
if ($type == "system") {
if (user_access("access content")) {
menu("archive", t("archives"), "archive_page", 0, 1);
}
}
return $links;
}
......
......@@ -46,14 +46,6 @@ function search_link($type) {
menu("search", t("search"), "search_page", 0, 1);
}
if ($type == "system" && user_access("search content")) {
menu("search", t("search"), "search_page", 0, 1);
}
if ($type == "system" && user_access("search content")) {
menu("search", t("search"), "search_page", 0, 1);
}
return $links;
}
......
......@@ -46,14 +46,6 @@ function search_link($type) {
menu("search", t("search"), "search_page", 0, 1);
}
if ($type == "system" && user_access("search content")) {
menu("search", t("search"), "search_page", 0, 1);
}
if ($type == "system" && user_access("search content")) {
menu("search", t("search"), "search_page", 0, 1);
}
return $links;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment