Add PD_YEAR constant for use across the site

This commit is contained in:
Alex Cabal 2020-12-18 18:08:24 -06:00
parent 852ccba145
commit 3632463c13
5 changed files with 8 additions and 6 deletions

View file

@ -32,6 +32,8 @@ const SOURCE_PROJECT_GUTENBERG_AUSTRALIA = 8;
const AVERAGE_READING_WORDS_PER_MINUTE = 275;
define('PD_YEAR', intval(gmdate('Y')) - 96);
// No trailing slash on any of the below constants.
const SITE_URL = 'https://standardebooks.org';
const SITE_ROOT = '/standardebooks.org';