mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
b8fd313e2d
|
@ -17,6 +17,7 @@
|
|||
"pear/db": "*",
|
||||
"alecrabbit/php-console-colour": "*",
|
||||
"dragonmantank/cron-expression": "^2.2",
|
||||
"zf1/zend-search-lucene": "*"
|
||||
"zf1/zend-search-lucene": "*",
|
||||
"symfony/http-foundation": "^5.4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,17 +54,18 @@ class SeedDMS_Controller_Common {
|
|||
* @return mixed return value of called method
|
||||
*/
|
||||
function __invoke($get=array()) {
|
||||
$this->callHook('preRun', isset($get['action']) ? $get['action'] : 'run');
|
||||
if(isset($get['action']) && $get['action']) {
|
||||
if(method_exists($this, $get['action'])) {
|
||||
return $this->{$get['action']}();
|
||||
} else {
|
||||
echo "Missing action '".$get['action']."'";
|
||||
return false;
|
||||
}
|
||||
} else
|
||||
return $this->run();
|
||||
$this->callHook('postRun', isset($get['action']) ? $get['action'] : 'run');
|
||||
if(!$this->callHook('preRun', get_class($this), isset($get['action']) ? $get['action'] : 'run', $get)) {
|
||||
if(isset($get['action']) && $get['action']) {
|
||||
if(method_exists($this, $get['action'])) {
|
||||
return $this->{$get['action']}();
|
||||
} else {
|
||||
echo "Missing action '".$get['action']."'";
|
||||
return false;
|
||||
}
|
||||
} else
|
||||
return $this->run();
|
||||
}
|
||||
$this->callHook('postRun', get_class($this), isset($get['action']) ? $get['action'] : 'run', $get);
|
||||
}
|
||||
|
||||
function setParams($params) {
|
||||
|
|
|
@ -82,7 +82,7 @@ $docname = $document->getName();
|
|||
|
||||
$controller->setParam('document', $document);
|
||||
$controller->setParam('fulltextservice', $fulltextservice);
|
||||
if(!$controller->run()) {
|
||||
if(!$controller($_POST)) {
|
||||
if ($controller->getErrorMsg() != '')
|
||||
$errormsg = $controller->getErrorMsg();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user