mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
pass document to hooks
This commit is contained in:
parent
d70713d29e
commit
b67339a9c7
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user