#216819: by csevb10: $language is now an object and causes errors in caching if not treated properly.