Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit ca05eb3

Browse files
committed
Updated to 1.0.8 version
1 parent 2363953 commit ca05eb3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Traits/ModuleHandler.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,14 @@ private function _setModuleParams($module, $path) {
220220
throw new ModuleException($message . ': ' . $path . '.', 816);
221221
}
222222

223-
$folder = explode(App::DS, $path);
224-
225223
$default['url-import'] = '';
226224

227225
$default['hooks-controller'] = 'Launcher';
228226

229227
$default['path']['root'] = rtrim($path, App::DS) . App::DS;
230228

231-
$default['folder'] = array_pop($folder) . App::DS;
232-
229+
$default['folder'] = $default['slug'] . App::DS;
230+
233231
$this->module = array_merge($default, $module);
234232

235233
$this->_setImage();

0 commit comments

Comments
 (0)