summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-12 20:06:02 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-12 20:06:02 +0000
commit1291d8dcb406442972c543502377779f2c8fecc1 (patch)
tree005d980f477e5d868f1f5d8e439f9091f0221248
parentf5a9ecccb1f0ee3c9c6b29834c960ddca8bd66d6 (diff)
downloadbrdo-1291d8dcb406442972c543502377779f2c8fecc1.tar.gz
brdo-1291d8dcb406442972c543502377779f2c8fecc1.tar.bz2
- Made a small change to the submission rate throttle
-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:
*/