Skip to content

Commit

Permalink
- Fixed bug #016973: switchlanguage fetch not working as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunnstein Lye committed Aug 10, 2010
1 parent 8f826b2 commit 46ab9b0
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -37,8 +37,12 @@ public function fetchUrlAlias( $nodeId = null, $path = null, $locale )
return array( 'result' => false );
}

$urlAlias = $destinationElement[0]->getPath( $locale );
$currentLanguageCodes = eZContentLanguage::prioritizedLanguageCodes();
array_unshift( $currentLanguageCodes, $locale );
$currentLanguageCodes = array_unique( $currentLanguageCodes );
$urlAlias = $destinationElement[0]->getPath( $locale, $currentLanguageCodes );
return array( 'result' => $urlAlias );
}
}
?>

?>

0 comments on commit 46ab9b0

Please sign in to comment.