fastslack/jUpgrade — pull request #44 by mahagr (2012-06-26 17:25:51+00:00)
Title: Fix J!1.0 site import and try harder to keep the menu aliases the same

Fix htmlencoded strings which are escaped in J!2.5
* In some old Joomla! 1.0 sites languages like Japanese were using HTML entities. This doesn't work in Joomla! 2.5 anymore, so those need to be fixed. Also fixes other entities, like &

Fix fatal error when migrating categories (component only)
* One of the last commits broke the component.

Improve code readability on error handling (category, menu migration)
* I've alwas wondered what the variable $errors was.

Fix menu aliases generation where there was no reason to rename alias
* If site had say 6 languages and all of them had the same menus with same aliases, none of the old aliases will work, even if they were totally legal. The new implementation does the same check as Joomla! itself, thus allowing most of the aliases to remain the same.

PS: if someone wants to get the old aliases on already migrated site, you could run something like this:

UPDATE ignore j25_menu as s INNER JOIN jos_menu as j on s.id=j.id AND s.client_id=0 AND s.alias != j.alias SET s.alias=j.alias