- Added "add new comment"-link (derived from a patch by Axel)

4.0.x
Dries Buytaert 2001-12-02 21:11:18 +00:00
parent 53e128807a
commit 9cb3430e8b
2 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ function book_save($op, $node) {
}
function book_link($type, $node = 0) {
function book_link($type, $node = 0, $main = 0) {
if ($type == "page" && user_access("access content")) {
$links[] = "<a href=\"module.php?mod=book\">". t("collaborative book") ."</a>";
}
@ -89,7 +89,7 @@ function book_link($type, $node = 0) {
$links[] = "<a href=\"admin.php?mod=book\">". t("collaborative book") ."</a>";
}
if ($type == "node" && $node->type == "book") {
if ($main == 0 && $type == "node" && $node->type == "book") {
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\">". t("update this book page") ."</a>";
}

View File

@ -80,7 +80,7 @@ function book_save($op, $node) {
}
function book_link($type, $node = 0) {
function book_link($type, $node = 0, $main = 0) {
if ($type == "page" && user_access("access content")) {
$links[] = "<a href=\"module.php?mod=book\">". t("collaborative book") ."</a>";
}
@ -89,7 +89,7 @@ function book_link($type, $node = 0) {
$links[] = "<a href=\"admin.php?mod=book\">". t("collaborative book") ."</a>";
}
if ($type == "node" && $node->type == "book") {
if ($main == 0 && $type == "node" && $node->type == "book") {
$links[] = "<a href=\"module.php?mod=node&op=edit&id=$node->nid\">". t("update this book page") ."</a>";
}