move defaults to resources

This commit is contained in:
Yuri Kuznetsov
2020-08-27 16:41:57 +03:00
parent 58c6208716
commit d1f3dbf89b
22 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -38,9 +38,9 @@ use Espo\Core\Utils\File\Manager as FileManager;
*/
class Config
{
private $defaultConfigPath = 'application/Espo/Core/defaults/config.php';
private $defaultConfigPath = 'application/Espo/Resources/defaults/config.php';
private $systemConfigPath = 'application/Espo/Core/defaults/systemConfig.php';
private $systemConfigPath = 'application/Espo/Resources/defaults/systemConfig.php';
protected $configPath = 'data/config.php';
+2 -3
View File
@@ -43,7 +43,7 @@ class Layout
protected $changedData = [];
protected $defaultsPath = 'application/Espo/Core/defaults';
protected $defaultPath = 'application/Espo/Resources/defaults/layouts';
protected $paths = [
'corePath' => 'application/Espo/Resources/layouts',
@@ -106,8 +106,7 @@ class Layout
return Json::encode($data);
}
$defaultPath = $this->defaultsPath;
$filePath = Util::concatPath(Util::concatPath($defaultPath, 'layouts'), $name . '.json' );
$filePath = Util::concatPath($this->defaultPath, $name . '.json' );
if (!file_exists($filePath)) return null;
}
+1 -1
View File
@@ -74,7 +74,7 @@ $config = include('core/config.php');
require_once 'core/SystemHelper.php';
$systemHelper = new SystemHelper();
$systemConfig = include('application/Espo/Core/defaults/systemConfig.php');
$systemConfig = include('application/Espo/Resources/defaults/systemConfig.php');
if (isset($systemConfig['requiredPhpVersion']) && version_compare(PHP_VERSION, $systemConfig['requiredPhpVersion'], '<')) {
die(str_replace("{minVersion}", $systemConfig['requiredPhpVersion'], $sanitizedLangs['messages']['phpVersion']) . ".\n");
}