summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/node.inc7
-rw-r--r--modules/node.module8
-rw-r--r--modules/node/node.module8
3 files changed, 14 insertions, 9 deletions
diff --git a/includes/node.inc b/includes/node.inc
index b602e2afc..e3c04db98 100644
--- a/includes/node.inc
+++ b/includes/node.inc
@@ -159,13 +159,6 @@ function node_save($node, $filter) {
if (empty($node->nid)) {
/*
- ** Verify a user's submission rate and avoid duplicate nodes being
- ** inserted:
- */
-
- throttle("node", variable_get("max_node_rate", 900));
-
- /*
** Insert a new node:
*/
diff --git a/modules/node.module b/modules/node.module
index aa9fdb942..53ed3e971 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -681,10 +681,16 @@ function node_preview($edit) {
}
function node_submit($node) {
-
global $user;
/*
+ ** Verify a user's submission rate and avoid duplicate nodes being
+ ** inserted:
+ */
+
+ throttle("node", variable_get("max_node_rate", 900));
+
+ /*
** Fixup the node when required:
*/
diff --git a/modules/node/node.module b/modules/node/node.module
index aa9fdb942..53ed3e971 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -681,10 +681,16 @@ function node_preview($edit) {
}
function node_submit($node) {
-
global $user;
/*
+ ** Verify a user's submission rate and avoid duplicate nodes being
+ ** inserted:
+ */
+
+ throttle("node", variable_get("max_node_rate", 900));
+
+ /*
** Fixup the node when required:
*/