summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-03 08:59:39 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-03 08:59:39 +0000
commiteb95d6d7fc1fb37730a6a3bd4be6e012f3abae67 (patch)
tree4fb516897df6ca628a5e8a9c6d4696b4f9933ec8 /modules
parent9369dccc04d423dc9a65617ddc9d3ed5730e5b2c (diff)
downloadbrdo-eb95d6d7fc1fb37730a6a3bd4be6e012f3abae67.tar.gz
brdo-eb95d6d7fc1fb37730a6a3bd4be6e012f3abae67.tar.bz2
- Bugfix: fixed typo in cloud module. Patch by Marky.
- Bugfix: fixed menu glitch in book module. Patch by Kjartan.
Diffstat (limited to 'modules')
-rw-r--r--modules/book.module2
-rw-r--r--modules/book/book.module2
-rw-r--r--modules/cloud.module2
3 files changed, 5 insertions, 1 deletions
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("<a href=\"$site->link\">$site->name</a>", ($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("<a href=\"$site->link\">$site->name</a>", ($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);