diff options
| author | 2014-09-18 13:34:22 +0200 | |
|---|---|---|
| committer | 2014-09-18 13:34:22 +0200 | |
| commit | ca74b2fca3711ef80542cc69269b2d9a654e3e5a (patch) | |
| tree | 4416f3bbe2d2d559557630c8a81bd5c27d6300d0 /app/Models/Configuration.php | |
| parent | 5c752f71e9bd07d2e8f9ffd4b246cf4216c7a85f (diff) | |
| parent | 0c012b006c868db294b1c227f82fb5861075001f (diff) | |
Merge pull request #620 from plopoyop/dev
Ajout d'un timeout pour la notification HTML5
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 352e70f4f..f94d82402 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( @@ -280,6 +281,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; } |
