<?php
function i18nmenu_node_set_item($node) {
  if (!empty($node->tnid) && $node->tnid != $node->nid) {
    $item = menu_get_item();
    $href = explode('/', $item['href']);
    $item['original_href'] = $href;
    $href[1] = $node->tnid;
    $item['href'] = implode('/', $href);
    menu_set_item(NULL, $item);
  }
}
?>

The original href should be saved as a string and not as an array.

CommentFileSizeAuthor
#1 i18nmenu_node-891904-1.patch775 bytesplach

Comments

plach’s picture

Status: Active » Fixed
StatusFileSize
new775 bytes

Committed the attached patch to HEAD.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.