Skip to content

Commit

Permalink
Layout defaults set
Browse files Browse the repository at this point in the history
  • Loading branch information
makville committed Jan 5, 2020
1 parent 57a1637 commit ef367ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class AppController extends BaseController {
public function initialize() {
parent::initialize();
$this->viewBuilder()->setLayout(Configure::read('makville-mailer-layout', 'admin'));
$this->loadComponent('MakvilleMailer.Mailer');
if (!in_array('Acl', $this->components()->loaded())) {
$this->loadComponent('MakvilleMailer.Mailer');
if (\Cake\Core\Plugin::isLoaded('MakvilleAcl')) {
$this->loadComponent('MakvilleAcl.Acl');
}
Expand Down

0 comments on commit ef367ec

Please sign in to comment.