|
@@ 54-58 (lines=5) @@
|
| 51 |
|
$adminRoot = $app['config']['admin_route']; |
| 52 |
|
|
| 53 |
|
$configFile = $app['config']['root_dir'].'/app/config/eccube/config'; |
| 54 |
|
if (file_exists($configFile.'.php')) { |
| 55 |
|
$config = require $configFile.'.php'; |
| 56 |
|
} elseif (file_exists($configFile.'.yml')) { |
| 57 |
|
$config = Yaml::parse(file_get_contents($configFile.'.yml')); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
// trim処理 |
| 61 |
|
$allowHost = Str::convertLineFeed($data['admin_allow_host']); |
|
@@ 95-99 (lines=5) @@
|
| 92 |
|
// admin_routeが変更されればpath.(yml|php)を更新 |
| 93 |
|
$pathFile = $app['config']['root_dir'].'/app/config/eccube/path'; |
| 94 |
|
|
| 95 |
|
if (file_exists($pathFile.'.php')) { |
| 96 |
|
$config = require $pathFile.'.php'; |
| 97 |
|
} elseif (file_exists($pathFile.'.yml')) { |
| 98 |
|
$config = Yaml::parse(file_get_contents($pathFile.'.yml')); |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
$config['admin_route'] = $data['admin_route_dir']; |
| 102 |
|
|