use module helper
This commit is contained in:
parent
f29c4db95c
commit
eff1cd459d
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user