Installer fixed to early installed state

This commit is contained in:
Lucas Bartholemy 2014-02-25 18:53:43 +01:00
parent 52ebbe85a9
commit b773cafe36
3 changed files with 14 additions and 3 deletions

View File

@ -341,9 +341,6 @@ class HSetting extends HActiveRecord {
} else {
unset($config['theme']);
}
// Set in Installed State
$config['params']['installed'] = true;
HSetting::setConfiguration($config);
}

View File

@ -57,5 +57,15 @@ class InstallerModule extends CWebModule {
}
return false;
}
/**
* Sets application in installed state (disables installer)
*/
public function setInstalled() {
$config = HSetting::getConfiguration();
$config['params']['installed'] = true;
HSetting::setConfiguration($config);
}
}

View File

@ -186,10 +186,14 @@ class ConfigController extends Controller {
die();
}
// Rewrite whole configuration file, also sets application
// in installed state.
HSetting::RewriteConfiguration();
// Set to installed
$this->module->setInstalled();
try {
Yii::app()->user->logout();
} catch (Exception $e) {