diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-25 19:26:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-25 19:26:21 +0000 |
commit | c0494c0a2b2d022038baeeef33ce28bd71f35be9 (patch) | |
tree | 6538160fbe5046e15534f3fad33ec0639b363759 /modules/title.module | |
parent | 2df7214a09fd2c38123d7767c29ed130b5c42052 (diff) | |
download | brdo-c0494c0a2b2d022038baeeef33ce28bd71f35be9.tar.gz brdo-c0494c0a2b2d022038baeeef33ce28bd71f35be9.tar.bz2 |
- Committed phase 4 of JonBob's menu system changes.
Diffstat (limited to 'modules/title.module')
-rw-r--r-- | modules/title.module | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/modules/title.module b/modules/title.module index 8de104f93..aa99aefdd 100644 --- a/modules/title.module +++ b/modules/title.module @@ -40,9 +40,7 @@ function title_page() { else if (db_num_rows($result) == 1) { $node = db_fetch_object($result); $node = node_load(array("nid" => $node->nid)); - print theme("header"); - print node_show($node, NULL); - print theme("footer"); + print theme("page", node_show($node, NULL)); } else { $header = array(t("Type"), t("Title"), t("Author")); @@ -58,16 +56,11 @@ function title_page() { $output .= "</div>"; drupal_set_title(t("Matching Posts")); - print theme("header"); - print $output; - print theme("footer"); + print theme("page", $output); } } else { - drupal_set_title(t("Access denied")); - print theme("header"); - print message_access(); - print theme("footer"); + print theme("page", message_access()); } } |