From 8089fcc7622590dc93d427532ec35f3644214ed0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 30 Nov 2020 15:34:15 +0300 Subject: [PATCH] feed editor: also show default value for purge interval --- classes/pref/feeds.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 13bd47fcc..ca2c7b514 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -620,7 +620,6 @@ class Pref_Feeds extends Handler_Protected { print " "; $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 " "; - 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 " "; $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 " "; - 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");