Changed name of a layout from main.php to global.php
Changed language checks to new JLanguageMultilang::isEnabled method