fix parameter of hooks

This commit is contained in:
Uwe Steinmann 2017-04-20 10:03:53 +02:00
parent 5484c47ebd
commit dae6b2afde

View File

@ -240,7 +240,7 @@ if ($_FILES['userfile']['error'] == 0) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) { if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) { foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) {
if (method_exists($hookObj, 'preUpdateDocument')) { if (method_exists($hookObj, 'preUpdateDocument')) {
$hookObj->preUpdateDocument(null, array('name'=>&$name, 'comment'=>&$comment)); $hookObj->preUpdateDocument(null, $document, array('name'=>&$name, 'comment'=>&$comment));
} }
} }
} }
@ -254,7 +254,7 @@ if ($_FILES['userfile']['error'] == 0) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) { if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) { foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) {
if (method_exists($hookObj, 'postUpdateDocument')) { if (method_exists($hookObj, 'postUpdateDocument')) {
$hookObj->postUpdateDocument(null, $document); $hookObj->postUpdateDocument(null, $document, $contentResult->getContent());
} }
} }
} }