Compare commits

..

No commits in common. "ae8d84012bbc14f21a075f9addfa9554e3cc5534" and "144dd6e742c53710fb62d8bb7e5bcc403c8618f9" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
// Get any flash messages from previous request // Get any flash messages from previous request
$flash_messages = Feedback::getFlash(); $flash_messages = Feedback::getFlash();
if (!empty($flash_messages)) { if (!empty($flash_messages)) {
$system_messages = array_merge($system_messages, array_map(function($flash) { $messages = array_merge($messages, array_map(function($flash) {
return [ return [
'category' => $flash['category'], 'category' => $flash['category'],
'key' => $flash['key'], 'key' => $flash['key'],

View File

@ -11,7 +11,7 @@ require_once __DIR__ . '/../classes/ratelimiter.php';
* @return bool True if request is allowed, false if rate limited * @return bool True if request is allowed, false if rate limited
*/ */
function checkRateLimit($database, $endpoint, $userId = null) { function checkRateLimit($database, $endpoint, $userId = null) {
$rateLimiter = new RateLimiter($database['db']); $rateLimiter = new RateLimiter($database);
$ipAddress = $_SERVER['REMOTE_ADDR']; $ipAddress = $_SERVER['REMOTE_ADDR'];
// Check if request is allowed // Check if request is allowed