- Undid Kjartan's latest change (it breaks the feeds) and fixed it properly.
parent
94fd74096c
commit
102cbe5ee2
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue