From efcc6f68e42c5697f90d63c01aa913227bf6a5e4 Mon Sep 17 00:00:00 2001 From: paulo Date: Mon, 6 Jul 2015 22:59:15 +0100 Subject: [PATCH] Install Plugin available by default Install PT_BR Bugfix --- app/Config/bootstrap_phapp.php | 2 +- app/Plugin/Install/Controller/InstallController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Config/bootstrap_phapp.php b/app/Config/bootstrap_phapp.php index 8f28316..24e1159 100644 --- a/app/Config/bootstrap_phapp.php +++ b/app/Config/bootstrap_phapp.php @@ -18,7 +18,7 @@ //CakePlugin::load('DebugKit'); //CakePlugin::load('PrintReport', array('bootstrap' => true, 'routes' => false)); //CakePlugin::load('CsvView', array('bootstrap' => true, 'routes' => false)); -//CakePlugin::load('Install', array('bootstrap' => false, 'routes' => false)); +CakePlugin::load('Install', array('bootstrap' => false, 'routes' => false)); /** * Languages available diff --git a/app/Plugin/Install/Controller/InstallController.php b/app/Plugin/Install/Controller/InstallController.php index a1cd7d2..dbc8d16 100644 --- a/app/Plugin/Install/Controller/InstallController.php +++ b/app/Plugin/Install/Controller/InstallController.php @@ -122,7 +122,7 @@ public function index() { $this->_check(); if (isset($this->data['Install']['language']) && $this->data['Install']['language'] != '') { $this->Session->write('User.language', $this->data['Install']['language']); - Configure::write('Config.language', $this->Session->read('User.language')); + $this->redirect(array('action' => 'index')); } $this->set('title_for_layout', __('Installation: Welcome')); $this->set('title_for_step', __('Installation: Welcome'));