/** * Check if the plugin was installed. * * @access private * @return void */ private function __checkInstallation() { // Check the installation status if (ForumConfig::isInstalled()) { $this->redirect(array('action' => 'index', 'controller' => 'home', 'plugin' => 'forum')); } // If progress hasn't begun, redirect if ($this->action != 'check_database') { if (!$this->Session->check('Install')) { $this->redirect(array('action' => 'index')); } } else { if (!$this->Session->check('Install')) { $this->Session->write('Install', array()); } } // Auto load DB if ($this->Session->check('Install.database')) { $this->DB =& ConnectionManager::getDataSource($this->Session->read('Install.database')); } }