src/java/de/uapcore/lightpit/AbstractLightPITServlet.java

changeset 20
bd1a76c91d5b
parent 18
a94b172c3a93
child 21
b213fef2539e
     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());

mercurial