diff --git a/op/op.Ajax.php b/op/op.Ajax.php index 5900f85b5..c2368857f 100644 --- a/op/op.Ajax.php +++ b/op/op.Ajax.php @@ -934,7 +934,7 @@ switch($command) { if(isset($GLOBALS['SEEDDMS_HOOKS'][$hook])) { foreach($GLOBALS['SEEDDMS_HOOKS'][$hook] as $hookObj) { if (method_exists($hookObj, 'pre'.ucfirst($hook))) { - $ires = $hookObj->preIndexDocument(null, $object, $idoc); + $ires = $hookObj->{'pre'.ucfirst($hook)}(null, $object, $idoc); } } }