From 102cbe5ee2eceb0884e856abf8fcc1afc3ca6ad9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 25 May 2003 07:08:21 +0000 Subject: - Undid Kjartan's latest change (it breaks the feeds) and fixed it properly. --- modules/node.module | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index e24dbc5e4..2d013f395 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1369,7 +1369,6 @@ function node_page() { $op = $_POST["op"]; $edit = $_POST["edit"]; - theme("header"); if (user_access("access content")) { if (empty($op)) { $op = arg(1); @@ -1380,7 +1379,10 @@ function node_page() { return; } + theme("header"); + $name = module_invoke(arg(2), "node", "name"); + switch ($op) { case "add": theme("box", t("Create new $name"), node_add(arg(2))); @@ -1409,12 +1411,15 @@ function node_page() { } print pager_display(NULL, variable_get("default_nodes_main", 10)); } + + theme("footer"); } else { + theme("header"); theme("box", t("Access denied"), message_access()); + theme("footer"); } - theme("footer"); } function node_update_index() { -- cgit v1.2.3