diff options
| author | 2014-09-18 10:46:34 +0200 | |
|---|---|---|
| committer | 2014-09-18 10:46:34 +0200 | |
| commit | 4211539c24e36531f2c5440ad454c4e208131047 (patch) | |
| tree | 97faa08fdb8fc48da1516070c1ee50fe211846db /app/Models/Configuration.php | |
| parent | 1967e289cfd09cdeb0d6beb5a10a3dacbc16a737 (diff) | |
Add timeout option for HTML5 notification
Diffstat (limited to 'app/Models/Configuration.php')
| -rw-r--r-- | app/Models/Configuration.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Models/Configuration.php b/app/Models/Configuration.php index e4408df73..830d39f0d 100644 --- a/app/Models/Configuration.php +++ b/app/Models/Configuration.php @@ -60,6 +60,7 @@ class FreshRSS_Configuration { 'bottomline_link' => true, 'sharing' => array(), 'queries' => array(), + 'html5_notif_timeout' => 0, ); private $available_languages = array( @@ -269,6 +270,12 @@ class FreshRSS_Configuration { $this->data['content_width'] = 'thin'; } } + + public function _html5_notif_timeout ($value) { + $value = intval($value); + $this->data['html5_notif_timeout'] = $value >= 0 ? $value : 0; + } + public function _token($value) { $this->data['token'] = $value; } |
