summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/menu.inc4
-rw-r--r--modules/system/system.module1
2 files changed, 3 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 1e8817ac6..5064d2f6c 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -652,14 +652,14 @@ function _menu_link_translate(&$item) {
_menu_item_localize($item, $map, TRUE);
}
-
+
// Allow other customizations - e.g. adding a page-specific query string to the
// options array. For performance reasons we only invoke this hook if the link
// has the 'alter' flag set in the options array.
if (!empty($item['options']['alter'])) {
drupal_alter('translated_menu_link', $item, $map);
}
-
+
return $map;
}
diff --git a/modules/system/system.module b/modules/system/system.module
index 329cc03e3..4c3707659 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1639,6 +1639,7 @@ function system_send_email_action($object, $context) {
case 'comment':
$comment = $context['comment'];
$node = node_load($comment->nid);
+ break;
case 'user':
// Because this is not an action of type 'user' the user
// object is not passed as $object, but it will still be available