Changeset 4243


Ignore:
Timestamp:
01/09/14 16:21:40 (10 years ago)
Author:
twagoo
Message:

minor refactoring for readability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/to-wicket-1.6/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloWebApplication.java

    r4240 r4243  
    5757                // no theme choosen, keep the current one
    5858            } else {
     59                final String themeName = object.toString();
    5960                // check if the users requests a different theme
    60                 if (object.toString().matches(((VloSession) Session.get()).getCurrentTheme().name)) {
     61                if (themeName.matches(((VloSession) Session.get()).getCurrentTheme().name)) {
    6162                    // current theme requested, nothing to do
    6263                } else {
    6364                    // different theme requested, compose it
    64                     VloSession.get().setCurrentTheme(new Theme(object.toString()));
     65                    VloSession.get().setCurrentTheme(new Theme(themeName));
    6566                    // remember the theme as a vlo session page parameter
    6667                    PageParameters params = new PageParameters();
Note: See TracChangeset for help on using the changeset viewer.