Resolves 53686: Undefined method in TYPO3 6.1 when extension yag is installed

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/sr_language_menu/trunk@84251 735d13b6-9817-0410-8766-e36946ffe9aa