1.1 --- a/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java Sat Mar 31 18:11:09 2018 +0200 1.2 +++ b/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java Sat Mar 31 19:35:04 2018 +0200 1.3 @@ -249,9 +249,11 @@ 1.4 private void doProcess(HttpMethod method, HttpServletRequest req, HttpServletResponse resp) 1.5 throws ServletException, IOException { 1.6 1.7 - HttpSession session = req.getSession(); 1.8 + // Synchronize module information with database 1.9 + getModuleManager().syncWithDatabase(getDatabaseFacade()); 1.10 1.11 // choose the requested language as session language (if available) or fall back to english, otherwise 1.12 + HttpSession session = req.getSession(); 1.13 if (session.getAttribute(Constants.SESSION_ATTR_LANGUAGE) == null) { 1.14 Optional<List<String>> availableLanguages = Functions.availableLanguages(getServletContext()).map(Arrays::asList); 1.15 Optional<Locale> reqLocale = Optional.of(req.getLocale());