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

Commit 68dd01b

Browse files
committed
Updated to 1.0.6 version
1 parent b6cb835 commit 68dd01b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Module.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ private function _getAction($state) {
298298
if (isset(self::$states['action'])) {
299299

300300
$action = self::$states['action'];
301+
302+
} else if (isset($this->module['action'])) {
303+
304+
$action = $this->module['action'];
301305
}
302306

303307
return ($state === 'uninstalled') ? '' : $action;
@@ -329,14 +333,14 @@ private function _doAction($action, $state) {
329333

330334
$Launcher = $that->instance('Launcher', 'controller');
331335

336+
$that->_setAction('');
337+
338+
$that->setState($state);
339+
332340
if (is_object($Launcher) && method_exists($Launcher, $action)) {
333341

334342
call_user_func([$Launcher, $action]);
335343
}
336-
337-
$that->_setAction('');
338-
339-
$that->setState($state);
340344
}
341345

342346
/**

0 commit comments

Comments
 (0)