fix: add back custom safe_define function
continuous-integration/drone/push Build is passing Details

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
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,10 @@
<?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('PHP_COMPRESSION', false);
safe_define('COPY_SYSLOG_TO_STDERR', true);