ezsystems/ezpublish — pull request #381 by bchoquet-heliopsis (2012-08-01 13:42:20+00:00)
Title: Don't break prioritized languages when fetching eZURLAliasML->getPath in different locale

Hi,
I stumbled upon this bug by using ezpLanguageSwitcher to generate path for multiple siteaccesses.

Path generation loops on parent nodes, sets temporarily prioritized languages array to wanted locales, fetches path elements in db then resets proritized languages.
This works well until one of the parent nodes is not translated in any of the wanted locales : script breaks loop and returns found path elements without resetting prioritized languages, hence breaking further language related operations.

I believe this fix to be harmless, just resetting things straight but I wonder if loop break shouldn't return an empty path rather than a partial one when an ancestor node is not translated. I didn't go this far since I don't know if this method has anything to do with PathPrefix...