diff --git a/op/op.AddDocument.php b/op/op.AddDocument.php index 963864717..7b077b0a6 100644 --- a/op/op.AddDocument.php +++ b/op/op.AddDocument.php @@ -340,7 +340,7 @@ for ($file_num=0;$file_numpreIndexDocument($document, $idoc); + $hookObj->preIndexDocument(null, $document, $idoc); } } } diff --git a/op/op.UpdateDocument.php b/op/op.UpdateDocument.php index 99b77f7ff..25547ef9c 100644 --- a/op/op.UpdateDocument.php +++ b/op/op.UpdateDocument.php @@ -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); } } }