summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-13 18:36:38 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-13 18:36:38 +0000
commitc2d2fb73095a32394dd95e72421aec49fa2cd6f6 (patch)
tree5d2d92a31480405b8c10c3b85927049238528242 /modules/book.module
parent13ffd8956826fec3cd9978edf73ef67d9eb8d46e (diff)
downloadbrdo-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/book.module')
-rw-r--r--modules/book.module13
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/book.module b/modules/book.module
index dd44b6b82..bc30b2546 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -160,8 +160,9 @@ function book_validate(&$node) {
}
function book_form(&$node, &$help, &$error) {
- global $user, $op;
+ global $user;
+ $op = $_POST["op"];
$output = form_select(t("Parent"), "parent", $node->parent, book_toc(), t("The parent subject or category the page belongs in."));
if (function_exists("taxonomy_node_form")) {
@@ -197,7 +198,10 @@ function book_form(&$node, &$help, &$error) {
}
function book_node_link($node = 0) {
- global $user, $op, $edit;
+ global $user;
+
+ $op = $_POST["op"];
+ $edit = $_POST["edit"];
if ($node->type != "book") {
@@ -337,7 +341,7 @@ function book_next($node) {
}
function book_body($node) {
- global $op;
+ $op = $_POST["op"];
if ($node->format == 1) {
// Make sure only authorized users can preview PHP pages.
@@ -705,7 +709,8 @@ function book_admin_links() {
}
function book_admin() {
- global $op, $edit;
+ $op = $_POST["op"];
+ $edit = $_POST["edit"];
if (user_access("administer nodes")) {
if (empty($op)) {