|
|
@ -85,7 +85,7 @@ class ModuleController extends Controller |
|
|
|
// add module record with active flag |
|
|
|
// add module record with active flag |
|
|
|
$db_module = ModuleRecord::find()->andWhere(['name' => $name])->one(); |
|
|
|
$db_module = ModuleRecord::find()->andWhere(['name' => $name])->one(); |
|
|
|
if (!$db_module) { |
|
|
|
if (!$db_module) { |
|
|
|
$this->_service->create($name, 'common\\modules\\' . $name . '\\' . $manifest['vjlule'], 'common', 1); |
|
|
|
$this->_service->create($name, 'common\\modules\\' . $name . '\\' . $manifest['module'], 'common', 1); |
|
|
|
} |
|
|
|
} |
|
|
|
// init permissions |
|
|
|
// init permissions |
|
|
|
echo ConsoleColor::log('Database: ', 'normal'); |
|
|
|
echo ConsoleColor::log('Database: ', 'normal'); |
|
|
|