replace global $language scope with $_SESSION