use module helper

This commit is contained in:
denisdulici 2020-02-05 18:11:51 +03:00
parent f29c4db95c
commit eff1cd459d

View File

@ -101,7 +101,7 @@ class Updater
throw new \Exception(trans('modules.errors.file_copy', ['module' => $alias]));
}
} else {
if ($module = Module::findByAlias($alias)) {
if ($module = module($alias)) {
$module_path = $module->getPath();
} else {
$module_path = base_path('modules/' . Str::studly($alias));