Skip to content

Commit

Permalink
Add and use MULTIPLE_IDS_MAXIMUM
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Loison committed Dec 15, 2024
1 parent 20782d9 commit 91e1358
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

include_once 'constants.php';
include_once 'configuration.php';

ini_set('display_errors', 0);

Expand Down Expand Up @@ -563,7 +564,7 @@ function verifyMultipleIdsConfiguration($realIds, $field) {
}

function verifyTooManyIds($realIds, $field) {
if (count($realIds) > 50) {
if (count($realIds) > MULTIPLE_IDS_MAXIMUM) {
dieWithJsonMessage("Too many $field");
}
}
Expand Down
1 change: 1 addition & 0 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
// Web-scraping endpoints:
define('GOOGLE_ABUSE_EXEMPTION', '');
define('MULTIPLE_IDS_ENABLED', True);
define('MULTIPLE_IDS_MAXIMUM', 50);

define('HTTPS_PROXY_ADDRESS', '');
define('HTTPS_PROXY_PORT', 80);
Expand Down

0 comments on commit 91e1358

Please sign in to comment.