pref-prefs: show default update interval as a dropdown

This commit is contained in:
Andrew Dolgov 2010-01-20 13:20:20 +03:00
parent 2bef21a79f
commit 505f2f0e6c
2 changed files with 17 additions and 1 deletions

View File

@ -123,6 +123,16 @@
1440 => __("Daily"),
10080 => __("Weekly"));
$update_intervals_nodefault = array(
-1 => __("Disable updates"),
15 => __("Each 15 minutes"),
30 => __("Each 30 minutes"),
60 => __("Hourly"),
240 => __("Each 4 hours"),
720 => __("Each 12 hours"),
1440 => __("Daily"),
10080 => __("Weekly"));
$update_methods = array(
0 => __("Default"),
1 => __("Magpie"),

View File

@ -368,7 +368,13 @@
print "<td class=\"prefValue\">";
if ($type_name == "bool") {
if ($pref_name == "DEFAULT_UPDATE_INTERVAL") {
global $update_intervals_nodefault;
print_select_hash($pref_name, $value, $update_intervals_nodefault);
} else if ($type_name == "bool") {
// print_select($pref_name, $value, array("true", "false"));
if ($value == "true") {