Update getTree method

An extra parameter is provided to choose if the language parameter should
be added to the url's of the menu-items.