mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Correct donation header end date calculation
This commit is contained in:
parent
fc5939480d
commit
f300fc25ed
1 changed files with 1 additions and 2 deletions
|
@ -35,10 +35,9 @@ const SOURCE_PROJECT_GUTENBERG_AUSTRALIA = 8;
|
|||
const AVERAGE_READING_WORDS_PER_MINUTE = 275;
|
||||
|
||||
define('PD_YEAR', intval(gmdate('Y')) - 96);
|
||||
|
||||
const DONATION_ALERT_ALWAYS_ON = false;
|
||||
const DONATION_ALERT_ON_DURING_HOLIDAYS = true;
|
||||
define('DONATION_ALERT_ON', DONATION_ALERT_ALWAYS_ON | (DONATION_ALERT_ON_DURING_HOLIDAYS && (strtotime('December 1, ' . gmdate('Y')) < time() && time() < strtotime('January 7, ' . (intval(gmdate('Y')) + 1)))));
|
||||
define('DONATION_ALERT_ON', DONATION_ALERT_ALWAYS_ON | (DONATION_ALERT_ON_DURING_HOLIDAYS && (time() > strtotime('December 1, ' . gmdate('Y')) || time() < strtotime('January 7, ' . gmdate('Y')))));
|
||||
// No trailing slash on any of the below constants.
|
||||
const SITE_URL = 'https://standardebooks.org';
|
||||
const SITE_ROOT = '/standardebooks.org';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue