fix: replace custom safe_define function by define
This commit is contained in:
parent
244e640e2e
commit
c3d9f9a619
@ -1,21 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
function safe_define($name, $value) {
|
define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')');
|
||||||
if (!defined($name)) {
|
define('PHP_COMPRESSION', false);
|
||||||
return define($name, $value);
|
define('COPY_SYSLOG_TO_STDERR', true);
|
||||||
}
|
define('MAX_LOG_SIZE', 1048576);
|
||||||
}
|
define('DATA_PATH', FRESHRSS_PATH . '/data');
|
||||||
|
|
||||||
safe_define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')');
|
define('UPDATE_FILENAME', DATA_PATH . '/update.php');
|
||||||
safe_define('PHP_COMPRESSION', false);
|
define('USERS_PATH', DATA_PATH . '/users');
|
||||||
safe_define('COPY_SYSLOG_TO_STDERR', true);
|
define('ADMIN_LOG', USERS_PATH . '/_/log.txt');
|
||||||
safe_define('MAX_LOG_SIZE', 1048576);
|
define('API_LOG', USERS_PATH . '/_/log_api.txt');
|
||||||
safe_define('DATA_PATH', FRESHRSS_PATH . '/data');
|
define('CACHE_PATH', DATA_PATH . '/cache');
|
||||||
|
define('PSHB_LOG', USERS_PATH . '/_/log_pshb.txt');
|
||||||
safe_define('UPDATE_FILENAME', DATA_PATH . '/update.php');
|
define('PSHB_PATH', DATA_PATH . '/PubSubHubbub');
|
||||||
safe_define('USERS_PATH', DATA_PATH . '/users');
|
define('TMP_PATH', CACHE_PATH);
|
||||||
safe_define('ADMIN_LOG', USERS_PATH . '/_/log.txt');
|
|
||||||
safe_define('API_LOG', USERS_PATH . '/_/log_api.txt');
|
|
||||||
safe_define('CACHE_PATH', DATA_PATH . '/cache');
|
|
||||||
safe_define('PSHB_LOG', USERS_PATH . '/_/log_pshb.txt');
|
|
||||||
safe_define('PSHB_PATH', DATA_PATH . '/PubSubHubbub');
|
|
||||||
safe_define('TMP_PATH', CACHE_PATH);
|
|
||||||
|
Reference in New Issue
Block a user