mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Installer fixed to early installed state
This commit is contained in:
parent
52ebbe85a9
commit
b773cafe36
@ -341,9 +341,6 @@ class HSetting extends HActiveRecord {
|
||||
} else {
|
||||
unset($config['theme']);
|
||||
}
|
||||
|
||||
// Set in Installed State
|
||||
$config['params']['installed'] = true;
|
||||
|
||||
HSetting::setConfiguration($config);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user