diff options
author | Andrew Dolgov <[email protected]> | 2020-11-30 15:29:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-11-30 15:29:22 +0300 |
commit | d48460969d381723fbcccec32af58a23ef6303c7 (patch) | |
tree | 0cedbc3b9bd65fc6bbce661f0112523b44ebacb4 | |
parent | 87184904ed9e0ac932e179a918b28766408fa3b7 (diff) |
feed editor: show actual value of default update interval
-rwxr-xr-x | classes/pref/feeds.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 8b9099007..13bd47fcc 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -509,7 +509,6 @@ class Pref_Feeds extends Handler_Protected { global $purge_intervals; global $update_intervals; - $feed_id = clean($_REQUEST["id"]); $sth = $this->pdo->prepare("SELECT * FROM ttrss_feeds WHERE id = ? AND @@ -620,7 +619,11 @@ class Pref_Feeds extends Handler_Protected { print "<label>".__("Interval:")."</label> "; - print_select_hash("update_interval", $update_interval, $update_intervals, + $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, 'dojoType="fox.form.Select"'); print "</fieldset>"; @@ -859,7 +862,11 @@ class Pref_Feeds extends Handler_Protected { print "<label>".__("Interval:")."</label> "; - print_select_hash("update_interval", "", $update_intervals, + $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, 'disabled="1" dojoType="fox.form.Select"'); $this->batch_edit_cbox("update_interval"); |