Skip to content

Commit

Permalink
Fixed check interval;
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Feb 24, 2017
1 parent 4602ce1 commit 29f677b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions browsernotification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ This plugin allow your browser to show notifications for GLPI
<compatibility>0.90</compatibility>
<compatibility>9.1</compatibility>
</version>
<version>
<num>1.1.2</num>
<compatibility>0.85</compatibility>
<compatibility>0.90</compatibility>
<compatibility>9.1</compatibility>
</version>
</versions>
<langs>
<lang>en_US</lang>
Expand Down
2 changes: 1 addition & 1 deletion js/user_notification.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$options = [
'user_id' => Session::getLoginUserID(),
'base_url' => $CFG_GLPI['root_doc'],
'interval' => ($CFG_BROWSER_NOTIF['check_interval'] < 5 ? $CFG_BROWSER_NOTIF['check_interval'] : 5) * 1000,
'interval' => ($CFG_BROWSER_NOTIF['check_interval'] > 5 ? $CFG_BROWSER_NOTIF['check_interval'] : 5) * 1000,
'locale' => strtolower($CFG_GLPI["languages"][$_SESSION['glpilanguage']][2]),
];

Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('PLUGIN_BROWSERNOTIFICATION_VERSION', '1.1.1');
define('PLUGIN_BROWSERNOTIFICATION_VERSION', '1.1.2');

// Init the hooks of the plugins -Needed
function plugin_init_browsernotification() {
Expand Down

0 comments on commit 29f677b

Please sign in to comment.