Skip to content

Commit

Permalink
コマンドインストール時の管理画面テーマを admin-third に変更 fix #1368 (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 13, 2020
1 parent 5f56d61 commit 1f84156
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/Baser/Controller/Component/BcManagerComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function install($siteUrl, $dbConfig, $adminUser = [], $baseUrl = '', $db
}

// データベース初期化
if (!$this->constructionDb($dbConfig, $dbDataPattern)) {
if (!$this->constructionDb($dbConfig, $dbDataPattern, Configure::read('BcApp.defaultAdminTheme'))) {
$this->log(__d('baser', 'データベースの初期化に失敗しました。データベースの設定を見なおしてください。'));
$result = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -851,27 +851,26 @@ public function testCheckDbConnectionPDOException() {

/**
* テーマに管理システム用アセットを配置する
*
* @return boolean
*/
public function testDeployAdminAssets() {

// 初期化
$this->BcManager->resetAdminAssets();

// 配置
$this->BcManager->deployAdminAssets();


if(is_dir(BASER_THEMES . Configure::read('BcSite.admin_theme'))) {
$assetRoot = BASER_THEMES . Configure::read('BcSite.admin_theme') . DS;
} else {
$assetRoot = WWW_ROOT;
}
$paths = [
WWW_ROOT . 'img' . DS . 'admin',
WWW_ROOT . 'css' . DS . 'admin',
WWW_ROOT . 'js' . DS . 'admin'
$assetRoot . 'img' . DS . 'admin',
$assetRoot . 'css' . DS . 'admin',
$assetRoot . 'js' . DS . 'admin'
];
foreach ($paths as $path) {
$this->assertFileExists($path, '管理画面用のアセットフォルダを配置きません');
}


}

/**
Expand Down

0 comments on commit 1f84156

Please sign in to comment.