feat(legacy): consolidate constants (#1558)
* remove unused file * fix paths leading slash * remove useless imports * refactor(legacy): use constants everywhere * fix path leading slash * remove useless import * consolidate legacy contants * format code * reuse LIBRETIME_CONFIG_DIR * fix test config path * remove ci legacy log dir creation * some logs improvements
This commit is contained in:
parent
e106858fd8
commit
729a7b99e0
34 changed files with 133 additions and 257 deletions
|
@ -1,24 +1,23 @@
|
|||
<?php
|
||||
|
||||
require_once CONFIG_PATH . 'conf.php';
|
||||
require_once 'preload.php';
|
||||
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
||||
require_once CONFIG_PATH . 'ACL.php';
|
||||
require_once CONFIG_PATH . '/ACL.php';
|
||||
|
||||
// Since we initialize the database during the configuration check,
|
||||
// check the $configRun global to avoid reinitializing unnecessarily
|
||||
if (!isset($configRun) || !$configRun) {
|
||||
Propel::init(CONFIG_PATH . 'airtime-conf-production.php');
|
||||
Propel::init(PROPEL_CONFIG_FILEPATH);
|
||||
}
|
||||
|
||||
require_once CONFIG_PATH . 'constants.php';
|
||||
|
||||
Logging::setLogPath(LIBRETIME_LOG_DIR . '/legacy.log');
|
||||
Logging::setLogPath(LIBRETIME_LOG_FILEPATH);
|
||||
|
||||
Zend_Session::setOptions(['strict' => true]);
|
||||
Config::setAirtimeVersion();
|
||||
|
||||
require_once CONFIG_PATH . 'navigation.php';
|
||||
require_once CONFIG_PATH . '/navigation.php';
|
||||
|
||||
Zend_Validate::setDefaultNamespaces('Zend');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue