Browse Source

Console ModuleController module file fix

master
Egorka 6 years ago
parent
commit
714fe21eed
  1. 2
      console/controllers/ModuleController.php

2
console/controllers/ModuleController.php

@ -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');

Loading…
Cancel
Save