feed editor: also show default value for purge interval

This commit is contained in:
Andrew Dolgov 2020-11-30 15:34:15 +03:00
parent d48460969d
commit 8089fcc762
1 changed files with 8 additions and 4 deletions

View File

@ -620,7 +620,6 @@ class Pref_Feeds extends Handler_Protected {
print "<label>".__("Interval:")."</label> ";
$local_update_intervals = $update_intervals;
$local_update_intervals[0] .= sprintf(" (%s)", $update_intervals[get_pref("DEFAULT_UPDATE_INTERVAL")]);
print_select_hash("update_interval", $update_interval, $local_update_intervals,
@ -636,7 +635,10 @@ class Pref_Feeds extends Handler_Protected {
print "<label>" . __('Article purging:') . "</label> ";
print_select_hash("purge_interval", $purge_interval, $purge_intervals,
$local_purge_intervals = $purge_intervals;
$local_purge_intervals[0] .= " " . T_sprintf("(%d days)", get_pref("PURGE_OLD_DAYS"));
print_select_hash("purge_interval", $purge_interval, $local_purge_intervals,
'dojoType="fox.form.Select" ' .
((FORCE_ARTICLE_PURGE == 0) ? "" : 'disabled="1"'));
@ -863,7 +865,6 @@ class Pref_Feeds extends Handler_Protected {
print "<label>".__("Interval:")."</label> ";
$local_update_intervals = $update_intervals;
$local_update_intervals[0] .= sprintf(" (%s)", $update_intervals[get_pref("DEFAULT_UPDATE_INTERVAL")]);
print_select_hash("update_interval", "", $local_update_intervals,
@ -881,7 +882,10 @@ class Pref_Feeds extends Handler_Protected {
print "<label>" . __('Article purging:') . "</label> ";
print_select_hash("purge_interval", "", $purge_intervals,
$local_purge_intervals = $purge_intervals;
$local_purge_intervals[0] .= " " . T_sprintf("(%d days)", get_pref("PURGE_OLD_DAYS"));
print_select_hash("purge_interval", "", $local_purge_intervals,
'disabled="1" dojoType="fox.form.Select"');
$this->batch_edit_cbox("purge_interval");