#1020 Restrict dashboard/shortcut refresh interval -retrofit from trunk

SVN:2.0.3[3449]
This commit is contained in:
Romain Quetiez
2014-12-03 14:18:16 +00:00
parent ad3178d02e
commit 1e66220077
12 changed files with 169 additions and 21 deletions

View File

@@ -226,7 +226,7 @@ class DisplayBlock
if (is_numeric($aExtraParams['auto_reload']) && ($aExtraParams['auto_reload'] > 0))
{
$bAutoReload = true;
$iReloadInterval = max(5, $aExtraParams['auto_reload'])*1000;
$iReloadInterval = max(MetaModel::GetConfig()->Get('min_reload_interval'), $aExtraParams['auto_reload'])*1000;
}
else
{