Commit 1291d8dc authored by Dries's avatar Dries
Browse files

- Made a small change to the submission rate throttle
parent f5a9eccc
...@@ -158,13 +158,6 @@ function node_save($node, $filter) { ...@@ -158,13 +158,6 @@ function node_save($node, $filter) {
if (empty($node->nid)) { 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: ** Insert a new node:
*/ */
......
...@@ -681,9 +681,15 @@ function node_preview($edit) { ...@@ -681,9 +681,15 @@ function node_preview($edit) {
} }
function node_submit($node) { function node_submit($node) {
global $user; 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: ** Fixup the node when required:
*/ */
......
...@@ -681,9 +681,15 @@ function node_preview($edit) { ...@@ -681,9 +681,15 @@ function node_preview($edit) {
} }
function node_submit($node) { function node_submit($node) {
global $user; 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: ** Fixup the node when required:
*/ */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment