- Undid Kjartan's latest change (it breaks the feeds) and fixed it properly.

4.2.x
Dries Buytaert 2003-05-25 07:08:21 +00:00
parent 94fd74096c
commit 102cbe5ee2
2 changed files with 14 additions and 4 deletions

View File

@ -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() {

View File

@ -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() {