Use optionslib to read config value

pull/1507/head
phl0 2022-06-30 21:32:09 +02:00
rodzic 3fc003d6a8
commit 570ac1e505
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 48EA1E640798CA9A
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1126,7 +1126,7 @@ $(document).on('keypress',function(e) {
$("#selectPropagation").val(data.prop_mode);
// Display CAT Timeout warnng based on the figure given in the config file
var minutes = Math.floor(<?php echo $this->config->item('cat_timeout_interval'); ?> / 60);
var minutes = Math.floor(<?php echo $this->optionslib->get_option('cat_timeout_interval'); ?> / 60);
if(data.updated_minutes_ago > minutes) {
if($('.radio_timeout_error').length == 0) {