Bugfix: update SnarkManager._theme each time getTheme() is called

FIXME: ensure that _theme is only read from the config file once per page load.
This commit is contained in:
str4d
2012-07-22 06:59:43 +00:00
parent 8e6bade42b
commit 490dcc5020

View File

@ -293,10 +293,12 @@ public class SnarkManager implements Snark.CompleteListener {
updateConfig();
}
/**
* Get current theme.
* Get current theme - reads config file on every call.
* FIXME: only read in _theme on first call for each page load.
* @return String -- the current theme
*/
public String getTheme() {
_theme = _context.readConfigFile(THEME_CONFIG_FILE).getProperty(PROP_THEME, DEFAULT_THEME);
return _theme;
}