mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
get name and comment after preAddDocument hook, set generic err msg only if hook hasn't set one
This commit is contained in:
parent
883131d61e
commit
d64a662aed
|
@ -30,10 +30,13 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
|
|||
* of the parameters.
|
||||
*/
|
||||
if(false === $this->callHook('preAddDocument', array('name'=>&$name, 'comment'=>&$comment))) {
|
||||
$this->errormsg = 'hook_preAddDocument_failed';
|
||||
if(empty($this->errormsg))
|
||||
$this->errormsg = 'hook_preAddDocument_failed';
|
||||
return null;
|
||||
}
|
||||
|
||||
$name = $this->getParam('name');
|
||||
$comment = $this->getParam('comment');
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
$settings = $this->params['settings'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user