oOo's timestamper fixes (wtf was i thinking with those web params? !thwap)

This commit is contained in:
jrandom
2004-08-24 19:59:54 +00:00
committed by zzz
parent db135e502c
commit 84f8931ddd
3 changed files with 5 additions and 4 deletions

View File

@ -222,9 +222,10 @@ public class ConfigNetHandler extends FormHandler {
updateRates();
if (_timeSyncEnabled) {
// Time sync enable, means NOT disabled
_context.router().setConfigSetting(Timestamper.PROP_DISABLED, "false");
} else {
_context.router().setConfigSetting(Timestamper.PROP_DISABLED, "false");
_context.router().setConfigSetting(Timestamper.PROP_DISABLED, "true");
}
boolean saved = _context.router().saveConfig();

View File

@ -51,8 +51,8 @@ public class ConfigNetHelper {
}
public String getEnableTimeSyncChecked() {
String enabled = _context.getProperty(Timestamper.PROP_DISABLED, "true");
if ( (enabled == null) || (!"true".equalsIgnoreCase(enabled)) )
String disabled = _context.getProperty(Timestamper.PROP_DISABLED, "false");
if ( (disabled != null) && ("true".equalsIgnoreCase(disabled)) )
return "";
else
return " checked ";