Version 2.1 - Fix error with joomla 3.2.2

Fix error when edit template in joomla 3.2.2