mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-09 19:38:57 +00:00
actually run postRun hook
This commit is contained in:
parent
ba18e89cda
commit
7fe2a12af3
|
@ -75,7 +75,7 @@ class SeedDMS_Controller_Common {
|
||||||
if(method_exists($this, $action)) {
|
if(method_exists($this, $action)) {
|
||||||
$refl = new ReflectionMethod($this, $action);
|
$refl = new ReflectionMethod($this, $action);
|
||||||
if($refl->isPublic())
|
if($refl->isPublic())
|
||||||
return $this->{$action}();
|
$ret = $this->{$action}();
|
||||||
else {
|
else {
|
||||||
echo "Action '".$action."' not public";
|
echo "Action '".$action."' not public";
|
||||||
return false;
|
return false;
|
||||||
|
@ -85,11 +85,12 @@ class SeedDMS_Controller_Common {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
return $this->run();
|
$ret = $this->run();
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->callHook('postRun', get_class($this), $action ? $action : 'run');
|
$this->callHook('postRun', get_class($this), $action ? $action : 'run');
|
||||||
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setParams($params) {
|
public function setParams($params) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user