diff options
Diffstat (limited to 'modules/blog.module')
-rw-r--r-- | modules/blog.module | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/blog.module b/modules/blog.module index c8aa80a43..9acaf7bb0 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -119,7 +119,7 @@ function blog_page_user($uid) { $breadcrumb[] = l(t("Home"), NULL); $breadcrumb[] = l(t("Blogs"), "blog"); $breadcrumb[] = t("%name's blog", array("%name" => $account->name)); - theme("breadcrumb", $breadcrumb); + print theme("breadcrumb", $breadcrumb); $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND uid = '$account->uid' AND status = 1 ORDER BY nid DESC", variable_get("default_nodes_main", 10)); while ($node = db_fetch_object($result)) { @@ -135,7 +135,7 @@ function blog_page_last() { // Breadcrumb navigation: $breadcrumb[] = l(t("Home"), NULL); $breadcrumb[] = t("Blogs"); - theme("breadcrumb", $breadcrumb); + print theme("breadcrumb", $breadcrumb); $result = pager_query("SELECT nid FROM {node} WHERE type = 'blog' AND status = 1 ORDER BY nid DESC", variable_get("default_nodes_main", 10)); @@ -153,7 +153,7 @@ function blog_validate(&$node) { */ if (isset($node->body) && count(explode(" ", $node->body)) < variable_get("minimum_blog_size", 0)) { - $error["body"] = theme("theme_error", t("The body of your blog is too short.")); + $error["body"] = theme("error", t("The body of your blog is too short.")); } return $error; @@ -207,20 +207,20 @@ function blog_page() { } break; default: - theme("header"); + print theme("header"); if (arg(1)) { blog_page_user(arg(1)); } else { blog_page_last(); } - theme("footer"); + print theme("footer"); } } else { - theme("header"); - theme("box", t("Access denied"), message_access()); - theme("footer"); + print theme("header"); + print theme("box", t("Access denied"), message_access()); + print theme("footer"); } } @@ -237,12 +237,12 @@ function blog_view($node, $main = 0) { $breadcrumb[] = l(t("Home"), NULL); $breadcrumb[] = l(t("%name's blog", array("%name" => $node->name)), "blog/$node->uid"); // print the breadcrumb - theme("breadcrumb", $breadcrumb); + print theme("breadcrumb", $breadcrumb); } // prepair the node content $node = blog_content($node); // print the node - theme("node", $node, $main); + print theme("node", $node, $main); } function blog_link($type, $node = 0, $main) { |