diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-31 14:58:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-31 14:58:37 +0000 |
commit | d1a07a2e8f21e402c85799215f37bd7f3cb685f1 (patch) | |
tree | 845bccd135828c5c39584bde0d199dff941b8180 /includes/node.inc | |
parent | d9e72f37de62ae2c96925ec5f75c7e6bd449b59b (diff) | |
download | brdo-d1a07a2e8f21e402c85799215f37bd7f3cb685f1.tar.gz brdo-d1a07a2e8f21e402c85799215f37bd7f3cb685f1.tar.bz2 |
- fixed "you-have-to-logout-and-login-before-permissions-change" bug
(reported by UnConeD)
- added "add node" link to book selection box and made it display the
current location
- removed tabs and whitespaces from themes - done automatically
Diffstat (limited to 'includes/node.inc')
-rw-r--r-- | includes/node.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/node.inc b/includes/node.inc index d4ba181e0..5bfefe00c 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -146,10 +146,10 @@ function node_info($node) { </SCRIPT> <?php - $choices = array("node.php?id=$node->nid" => t("view node"), "/submit.php?mod=$node->type&op=update&id=$node->nid" => t("suggest update"), "node.php?op=history&id=$node->nid" => t("view history")); + $choices = array("node.php?id=$node->nid" => t("view node"), "submit.php?mod=$node->type" => t("add node"), "submit.php?mod=$node->type&op=update&id=$node->nid" => t("update node"), "node.php?op=history&id=$node->nid" => t("view history")); $output .= "<FORM METHOD=\"get\" ACTION=\"\">\n"; - foreach ($choices as $key => $value) $options .= "<OPTION VALUE=\"$key\"". ($key == $REQUEST_URI ? " SELECTED" : "") .">". check_select($value) ."</OPTION>\n"; + foreach ($choices as $key => $value) $options .= "<OPTION VALUE=\"$key\"". ("/$key" == $REQUEST_URI ? " SELECTED" : "") .">". check_select($value) ."</OPTION>\n"; $output .= " <SELECT NAME=\"op\" ONCHANGE=\"visit(this.options[this.selectedIndex].value)\">$options</SELECT>\n"; $output .= "</FORM>\n"; |