--- nice_menus.module.orig	2009-03-23 09:09:27.000000000 -0400
+++ nice_menus.module	2009-03-23 09:13:10.000000000 -0400
@@ -319,7 +319,7 @@ function theme_nice_menu_build($menu) {
         $children = theme('nice_menu_build', $menu_item['below']);
         // Set the class to parent only of children are displayed.
         $parent_class = $children ? 'menuparent ' : '';
-        $output .= '<li id="menu-'. $mlid .'" class="'. $parent_class . $path_class .'">'. theme('menu_item_link', $menu_item['link']);
+        $output .= '<li id="menu-'. $mlid .'" class="'. $parent_class . $path_class .'">'. _nice_menus_menu_item_link($menu_item['link']);
         // Build the child UL only if children are displayed for the user.
         if ($children) {
           $output .= '<ul>';
@@ -329,7 +329,7 @@ function theme_nice_menu_build($menu) {
         $output .= "</li>\n";
       }
       else {
-        $output .= '<li id="menu-'. $mlid .'" class="'. $path_class .'">'. theme('menu_item_link', $menu_item['link']) .'</li>'."\n";
+        $output .= '<li id="menu-'. $mlid .'" class="'. $path_class .'">'. _nice_menus_menu_item_link($menu_item['link']) .'</li>'."\n";
       }
     }
   }
@@ -384,3 +384,11 @@ function theme_nice_menu_primary_links($
   $output = theme('nice_menu', 0, $menu_name, 0, $direction, $menu);
   return $output['content'];
 }
+
+function _nice_menus_menu_item_link($link) {
+  if (empty($link['localized_options'])) {
+    $link['localized_options'] = array();
+  }
+
+  return l($link['title'], $link['href'], $link['localized_options']);
+}
