|
@@ -4003,8 +4003,6 @@ function call_integration_hook($hook, $parameters = array())
|
|
if (!isset($context['instances']))
|
|
if (!isset($context['instances']))
|
|
$context['instances'] = array();
|
|
$context['instances'] = array();
|
|
|
|
|
|
- loadLanguage('Errors');
|
|
|
|
-
|
|
|
|
$results = array();
|
|
$results = array();
|
|
if (empty($modSettings[$hook]))
|
|
if (empty($modSettings[$hook]))
|
|
return $results;
|
|
return $results;
|
|
@@ -4041,7 +4039,10 @@ function call_integration_hook($hook, $parameters = array())
|
|
|
|
|
|
// No? tell the admin about it.
|
|
// No? tell the admin about it.
|
|
else
|
|
else
|
|
|
|
+ {
|
|
|
|
+ loadLanguage('Errors');
|
|
log_error(sprintf($txt['hook_fail_loading_file'], $absPath), 'general');
|
|
log_error(sprintf($txt['hook_fail_loading_file'], $absPath), 'general');
|
|
|
|
+ }
|
|
|
|
|
|
// Check if a new object will be created.
|
|
// Check if a new object will be created.
|
|
if (strpos($call[1], '#') !== false)
|
|
if (strpos($call[1], '#') !== false)
|
|
@@ -4086,7 +4087,10 @@ function call_integration_hook($hook, $parameters = array())
|
|
|
|
|
|
// Whatever it was suppose to call, it failed :(
|
|
// Whatever it was suppose to call, it failed :(
|
|
elseif (!empty($func) && !empty($absPath))
|
|
elseif (!empty($func) && !empty($absPath))
|
|
|
|
+ {
|
|
|
|
+ loadLanguage('Errors');
|
|
log_error(sprintf($txt['hook_fail_call_to'], $func, $absPath), 'general');
|
|
log_error(sprintf($txt['hook_fail_call_to'], $func, $absPath), 'general');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
return $results;
|
|
return $results;
|