diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-13 18:36:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-13 18:36:38 +0000 |
commit | c2d2fb73095a32394dd95e72421aec49fa2cd6f6 (patch) | |
tree | 5d2d92a31480405b8c10c3b85927049238528242 /modules/node | |
parent | 13ffd8956826fec3cd9978edf73ef67d9eb8d46e (diff) | |
download | brdo-c2d2fb73095a32394dd95e72421aec49fa2cd6f6.tar.gz brdo-c2d2fb73095a32394dd95e72421aec49fa2cd6f6.tar.bz2 |
- Fixed a typo in the PostgreSQL database scheme. Patch by Michael Frankowski.
- Fixed a typo in the MSSQL database scheme. Patch by Michael Frankowski.
- Removed dependency on "register_globals = on"! Patches by Michael Frankowski.
Notes:
+ Updated the patches to use $foo["bar"] instead of $foo['bar'].
+ Updated the INSTALL and CHANGELOG files as well.
- Tiny improvement to the "./scripts/code-clean.sh" script.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index aa0c8b2b1..7ec69b207 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -422,7 +422,6 @@ function node_perm() { } function node_search($keys) { - global $PHP_SELF; // Return the results of performing a search using the indexed search // for this particular type of node. @@ -597,7 +596,7 @@ function node_admin_nodes() { */ function node_admin_settings($edit) { - global $op; + $op = $_POST["op"]; if ($op == t("Save configuration")) { /* @@ -762,7 +761,8 @@ function node_revision_list($node) { } function node_admin() { - global $op, $edit; + $op = $_POST["op"]; + $edit = $_POST["edit"]; if (user_access("administer nodes")) { @@ -1094,7 +1094,9 @@ function node_form($edit, $error = NULL) { } function node_add($type) { - global $user, $edit; + global $user; + + $edit = $_POST["edit"]; /* ** If a node type has been specified, validate it existence. If no @@ -1353,7 +1355,10 @@ function node_delete($edit) { } function node_page() { - global $op, $id, $user, $edit, $or, $and; + global $id, $user, $or, $and; + + $op = $_POST["op"]; + $edit = $_POST["edit"]; if (user_access("access content")) { if (empty($op)) { |