Skip to content

Commit

Permalink
Fix: leftover dashboardUrl and convert to expected value
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Jan 19, 2018
1 parent 8b8015c commit d103d11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dashboards/config/bootstrap.php
Expand Up @@ -6,14 +6,16 @@

use Cake\Core\Configure;
use Croogo\Dashboards\Configure\DashboardsConfigReader;
use Croogo\Core\Utility\StringConverter;

if (!Configure::check('Site.dashboardUrl')) {
Configure::write('Site.dashboardUrl', [
if (!Configure::check('Site.dashboard_url')) {
$converter = new StringConverter();
Configure::write('Site.dashboard_url', $converter->urlToLinkString([
'prefix' => 'admin',
'plugin' => 'Croogo/Dashboards',
'controller' => 'Dashboards',
'action' => 'dashboard',
]);
]));
}

Configure::config('dashboards', new DashboardsConfigReader());

0 comments on commit d103d11

Please sign in to comment.