diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-07-07 17:29:43 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-07-07 17:29:43 +0100 |
| commit | 6b6246b094289df09a1a7116d52528f21aefc028 (patch) | |
| tree | cf71620ded0494b2a09c83a1a5b5eb73792c8d79 | |
| parent | da260489fdf78107b6604e9f210cf444c81b7c26 (diff) | |
Configure number of urls that are sent in the email
| -rw-r--r-- | scripts/email_bookmarks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/email_bookmarks.php b/scripts/email_bookmarks.php index 8162488..4b616e7 100644 --- a/scripts/email_bookmarks.php +++ b/scripts/email_bookmarks.php @@ -6,7 +6,7 @@ $config = require_once(__DIR__.'/../config.php'); $urls = file($config['path_to_file'], FILE_IGNORE_NEW_LINES); -$urls = array_slice($urls, 0, 5); +$urls = array_slice($urls, 0, $config['num_urls_to_read']); if (!count($urls)) { exit(); |
