From eb95d6d7fc1fb37730a6a3bd4be6e012f3abae67 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 3 Nov 2003 08:59:39 +0000 Subject: - Bugfix: fixed typo in cloud module. Patch by Marky. - Bugfix: fixed menu glitch in book module. Patch by Kjartan. --- modules/book.module | 2 ++ modules/book/book.module | 2 ++ modules/cloud.module | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/book.module b/modules/book.module index 678e88345..55848fcbb 100644 --- a/modules/book.module +++ b/modules/book.module @@ -72,6 +72,8 @@ function book_link($type, $node = 0, $main = 0) { if ($type == "system") { if (user_access("maintain books")) { menu("node/add/book", t("book page"), "book_page", 0); + } + if (user_access("administer nodes")) { menu("admin/node/book", t("books"), "book_admin", 4); menu("admin/node/book/orphan", t("orphan pages"), "book_admin_orphan", 8); menu("admin/node/book/help", t("help"), "book_help", 9); diff --git a/modules/book/book.module b/modules/book/book.module index 678e88345..55848fcbb 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -72,6 +72,8 @@ function book_link($type, $node = 0, $main = 0) { if ($type == "system") { if (user_access("maintain books")) { menu("node/add/book", t("book page"), "book_page", 0); + } + if (user_access("administer nodes")) { menu("admin/node/book", t("books"), "book_admin", 4); menu("admin/node/book/orphan", t("orphan pages"), "book_admin_orphan", 8); menu("admin/node/book/help", t("help"), "book_help", 9); diff --git a/modules/cloud.module b/modules/cloud.module index fe293237b..b60628017 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -140,7 +140,7 @@ function cloud_display() { $header = array(t("site"), t("last update"), array("data" => t("operations"), "colspan" => 2)); while ($site = db_fetch_object($result)) { - $rows[] = array("link\">$site->name", ($site->changed ? format_interval(time() - $site->changed) ." ago" : "never"), l(t("edit site"), "admin/node/syndication/cloud/edit/$site->sid"), l(t("update site"), "admim/node/syndication/cloud/update/$site->sid")); + $rows[] = array("link\">$site->name", ($site->changed ? format_interval(time() - $site->changed) ." ago" : "never"), l(t("edit site"), "admin/node/syndication/cloud/edit/$site->sid"), l(t("update site"), "admin/node/syndication/cloud/update/$site->sid")); } return table($header, $rows); -- cgit v1.2.3