From de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 22 Apr 2002 09:05:36 +0000 Subject: - bug fixes: * fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch. --- modules/book.module | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index 93f23c837..57dff70c3 100644 --- a/modules/book.module +++ b/modules/book.module @@ -384,7 +384,7 @@ function book_view($node, $main = 0) { if ($node->title) { foreach (book_location($node) as $level) { - $location .= "$indent ".l($level->title, array("id" => $level->nid))."
"; + $location .= "$indent ". l($level->title, array("id" => $level->nid)) ."
"; $indent .= "-"; } @@ -406,7 +406,7 @@ function book_view($node, $main = 0) { } $output .= "
"; - $output .= " ". ($prev ? l(t("previous"), array("id" => $prev->nid), t("View the previous page in this book.")) : t("previous")) ."".lm(t("index"), array("mod" => "book"), t("View this book's table of contents."))."". ($next ? l(t("next"), array("id" => $next->nid), t("View the next page in this book.")) : t("next")) .""; + $output .= " ". ($prev ? l(t("previous"), array("id" => $prev->nid), t("View the previous page in this book.")) : t("previous")) ."". lm(t("index"), array("mod" => "book"), t("View this book's table of contents.")) ."". ($next ? l(t("next"), array("id" => $next->nid), t("View the next page in this book.")) : t("next")) .""; $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? l(t("up"), array("id" => $node->parent), t("View this page's parent section.")) : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; $output .= "
"; $output .= "
". $theme->links(link_node($node, $main)) ."
"; @@ -462,7 +462,7 @@ function book_tree_recurse($nid, $depth, $children) { if ($depth > 0) { if ($children[$nid]) { foreach ($children[$nid] as $foo => $node) { - $output .= "
  • ".l(check_output($node->title), array("id" => $node->nid))."
  • "; + $output .= "
  • ". l(check_output($node->title), array("id" => $node->nid)) ."
  • "; if ($tree = book_tree_recurse($node->nid, $depth - 1, $children)) { $output .= ""; @@ -508,7 +508,7 @@ function book_render() { if ($node) { // output the content: - $output .= "
    ".l(check_output($node->title), array("id" => $node->nid))."
    ". book_body($node) ."

    "; + $output .= "
    ". l(check_output($node->title), array("id" => $node->nid)) ."
    ". book_body($node) ."

    "; } } @@ -608,12 +608,12 @@ function book_admin_view_line($node, $depth = 0) { */ $output .= ""; - $output .= "
    ".l(check_output($node->title), array("id" => $node->nid))."
    "; + $output .= "
    ". l(check_output($node->title), array("id" => $node->nid)) ."
    "; $output .= " $revision"; - $output .= " ".la(t("edit node"), array("mod" => "node", "op" => "edit", "id" => $node->nid)).""; + $output .= " ". la(t("edit node"), array("mod" => "node", "op" => "edit", "id" => $node->nid)) .""; //TODO: get this link to work. Must pass $nid along so it is received by book_node_link() - //$output .= " ".la(t("edit book outline"), array("mod" => "book", "nid" => $node->nid, "op" => "Edit+book+outline")).""; - $output .= " ".la(t("delete node"), array("mod" => "node", "op" => "delete", "id" => $node->nid)).""; + //$output .= " ". la(t("edit book outline"), array("mod" => "book", "nid" => $node->nid, "op" => "Edit+book+outline")) .""; + $output .= " ". la(t("delete node"), array("mod" => "node", "op" => "delete", "id" => $node->nid)) .""; $output .= ""; return $output; @@ -660,7 +660,7 @@ function book_admin_orphan() { $output .= " titleoperations"; foreach ($pages as $nid => $node) { if ($node->parent && empty($pages[$node->parent])) { - $output .= "".l(check_output($node->title), array("id" => $node->nid))."".la(t("edit page"), array("mod" => "node", "op" => "edit", "id" => $node->nid))."".la(t("delete page"), array("mod" => "node", "op" => "delete", "id" => $node->nid)).""; + $output .= "". l(check_output($node->title), array("id" => $node->nid)) ."". la(t("edit page"), array("mod" => "node", "op" => "edit", "id" => $node->nid)) ."". la(t("delete page"), array("mod" => "node", "op" => "delete", "id" => $node->nid)) .""; } } $output .= ""; -- cgit v1.2.3