Commit 31291c3c authored by Paul Krischer's avatar Paul Krischer

Issue #1451336.13: Reverting a node revision deletes menu item. Improving fix.

parent 296e289c
......@@ -262,8 +262,11 @@ function expire_node($node) {
if (!isset($node->menu['menu_name'])) {
$menu_node = clone $node;
menu_node_prepare($menu_node);
$menu = menu_tree_all_data($menu_node->menu['menu_name']);
}
else {
$menu = menu_tree_all_data($node->menu['menu_name']);
}
$menu = menu_tree_all_data($menu_node->menu['menu_name']);
$tempa = NULL;
$tempb = NULL;
if (variable_get('expire_flush_menu_items', EXPIRE_FLUSH_MENU_ITEMS) == 1) {
......
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