Skip to content

Commit

Permalink
Updated PLG_onSpeeding function call
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Apr 27, 2022
1 parent 33939da commit a0fbf03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system/lib-plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
const SPEED_LIMIT_MAX_SUBMIT = 1;
const SPEED_LIMIT_MAX_TRACKBACK = 1;

// Constants for the window used in COM_clearSpeedlimit
// Constants for the time window used in COM_clearSpeedlimit (in seconds)
const SPEED_LIMIT_WINDOW_ERROR_403 = 60;
const SPEED_LIMIT_WINDOW_ERROR_404 = 60;
const SPEED_LIMIT_WINDOW_ERROR_SPAM = 60;
Expand Down Expand Up @@ -4190,9 +4190,9 @@ function PLG_collectRecaptchaInfo()
}

/**
* Gives plugins a chance to specify their own Strutured Data Types
* Gives plugins a chance to specify their own Structured Data Types
*
* @return array Returns Strutured Data Types from plugins
* @return array Returns Structured Data Types from plugins
*/
function PLG_getStructuredDataTypes()
{
Expand Down Expand Up @@ -4251,7 +4251,7 @@ function PLG_onSpeeding($type, $property = '', $last = -1)
}

foreach ($_PLUGINS as $pi_name) {
$function = 'plugin_onSpeeding' . $pi_name;
$function = 'plugin_onSpeeding_' . $pi_name;
if (function_exists($function)) {
$function($type, $property, $last);
}
Expand Down

0 comments on commit a0fbf03

Please sign in to comment.