Commit e200408f authored by webchick's avatar webchick

Issue #1861604 by hefox: Skip module_invoke()/module_hook() in calling...

Issue #1861604 by hefox: Skip module_invoke()/module_hook() in calling hook_watchdog() (excessive function_exist()).
parent de44cb8c
......@@ -1743,7 +1743,8 @@ function watchdog($type, $message, array $variables = NULL, $severity = WATCHDOG
// Call the logging hooks to log/process the message
foreach (module_implements('watchdog') as $module) {
module_invoke($module, 'watchdog', $log_entry);
$function = $module . '_watchdog'
$function($log_entry);
}
// It is critical that the semaphore is only cleared here, in the parent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment