pass null as first argument to preIndexDocument()

this will later be replaced by the controller
This commit is contained in:
Uwe Steinmann 2017-02-24 12:14:22 +01:00
parent 020f25052c
commit e85a9b83d7
2 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
if(isset($GLOBALS['SEEDDMS_HOOKS']['addDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['addDocument'] as $hookObj) {
if (method_exists($hookObj, 'preIndexDocument')) {
$hookObj->preIndexDocument($document, $idoc);
$hookObj->preIndexDocument(null, $document, $idoc);
}
}
}

View File

@ -270,7 +270,7 @@ if ($_FILES['userfile']['error'] == 0) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['updateDocument'])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['updateDocument'] as $hookObj) {
if (method_exists($hookObj, 'preIndexDocument')) {
$hookObj->preIndexDocument($document, $idoc);
$hookObj->preIndexDocument(null, $document, $idoc);
}
}
}