diff options
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()); } } |