diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-25 07:08:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-25 07:08:21 +0000 |
commit | 102cbe5ee2eceb0884e856abf8fcc1afc3ca6ad9 (patch) | |
tree | bc45a080ed575c6d6c7ccb864ce262aff2a87de2 /modules/node.module | |
parent | 94fd74096ccf598f19d37e5cb960c7c921253853 (diff) | |
download | brdo-102cbe5ee2eceb0884e856abf8fcc1afc3ca6ad9.tar.gz brdo-102cbe5ee2eceb0884e856abf8fcc1afc3ca6ad9.tar.bz2 |
- Undid Kjartan's latest change (it breaks the feeds) and fixed it properly.
Diffstat (limited to 'modules/node.module')
-rw-r--r-- | modules/node.module | 9 |
1 files changed, 7 insertions, 2 deletions
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() { |