public function getActiveLanguage() { $tmp = explode('-', $GLOBALS['TL_LANGUAGE']); return array_shift($tmp); }