fixes language inherit url for d7. refs #13006
refs #13006, Modify hook system, purge some unecessery error message.