diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-11-26 18:27:34 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-11-26 18:27:34 +0000 |
commit | 7d0c316f82a6332b4c731e8663d455b9a7b52259 (patch) | |
tree | 7a5cfc98a1f5c53dd85cba70d5b55e32d9ce9eb2 /modules/node/node.module | |
parent | 255e2d0eb7e25a8e7f61e18f12c0889c4ac5cdc6 (diff) | |
download | brdo-7d0c316f82a6332b4c731e8663d455b9a7b52259.tar.gz brdo-7d0c316f82a6332b4c731e8663d455b9a7b52259.tar.bz2 |
- fixed pass by reference errors. PHP only allows declaration of &$vars, not
passing them that way.
For more info: http://no.php.net/manual/en/language.references.pass.php
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 9ef069c5f..8aa15c96b 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -464,7 +464,7 @@ function node_feed() { } -function node_validate($node, $error = array()) { +function node_validate($node, &$error) { global $user; @@ -547,7 +547,7 @@ function node_form($edit) { ** Validate the node: */ - $edit = node_validate($edit, &$error); + $edit = node_validate($edit, $error); /* ** Get the node specific bits: @@ -555,7 +555,7 @@ function node_form($edit) { $function = $edit->type ."_form"; if (function_exists($function)) { - $form .= $function(&$edit, &$help, &$error); + $form .= $function($edit, $help, $error); } /* @@ -756,7 +756,7 @@ function node_submit($node) { ** Fixup the node when required: */ - $node = node_validate($node); + $node = node_validate($node, $error); /* ** Apply the filters: @@ -862,7 +862,7 @@ function node_delete($edit) { ** Call the node specific callback (if any): */ - module_invoke($node->type, "delete", &$node); + module_invoke($node->type, "delete", $node); watchdog("special", "$node->type: deleted '$node->title'"); $output = t("The node has been deleted."); |