/** * method: executeRouter * * todo: write documentation */ protected function executeRouter() { // Finalise the router Amslib_Router::finalise(); // NOTE: we do not do it because webservice urls are typically not enabled with languages // therefore if you run the code which sets the language based on the url here, you might be in spanish // but then this code will default to setting english and all the language strings processed // in the webservice will come out in english instead of spanish like the website url might be dictating if (Amslib_Router::isService() == false) { self::setLanguage("content", Amslib_Router::getLanguage()); self::setLanguage("website", Amslib_Router::getLanguage()); } }