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) {
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:
*/
......
......@@ -681,9 +681,15 @@ 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:
*/
......
......@@ -681,9 +681,15 @@ 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:
*/
......
Markdown is supported
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