fix: add back custom safe_define function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-06-07 22:45:10 +02:00
parent 9d4410cd25
commit 244e640e2e
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -1,4 +1,10 @@
<?php <?php
function safe_define($name, $value) {
if (!defined($name)) {
return define($name, $value);
}
}
safe_define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')'); safe_define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')');
safe_define('PHP_COMPRESSION', false); safe_define('PHP_COMPRESSION', false);
safe_define('COPY_SYSLOG_TO_STDERR', true); safe_define('COPY_SYSLOG_TO_STDERR', true);