Commit 8f093858 authored by webchick's avatar webchick
Browse files

#331705 by dmitrig01: Make sure a menu callback exists before attempting to call it.

parent ee6ca839
......@@ -547,7 +547,7 @@ function _menu_item_localize(&$item, $map, $link_translate = FALSE) {
$item['title'] = t($item['title'], menu_unserialize($item['title_arguments'], $map));
}
}
elseif ($callback) {
elseif (drupal_function_exists($callback)) {
if (empty($item['title_arguments'])) {
$item['title'] = $callback($item['title']);
}
......
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