Added contacts.sync_interval = 20 setting in application.ini (Closed #150)

This commit is contained in:
RainLoop Team 2014-05-07 01:35:12 +04:00
parent d08689759d
commit 40d2548a53
14 changed files with 22 additions and 89 deletions

View file

@ -1022,6 +1022,7 @@ class Actions
$aResult['ContactsIsAllowed'] = $oAddressBookProvider->IsActive();
$aResult['ContactsSharingIsAllowed'] = $oAddressBookProvider->IsSharingAllowed();
$aResult['ContactsSyncIsAllowed'] = (bool) $oConfig->Get('contacts', 'allow_sync', false);
$aResult['ContactsSyncInterval'] = (int) $oConfig->Get('contacts', 'sync_interval', 20);
$aResult['EnableContactsSync'] = false;
$aResult['ContactsSyncUrl'] = '';

View file

@ -88,6 +88,7 @@ class Application extends \RainLoop\Config\AbstractConfig
'enable' => array(false, 'Enable contacts'),
'allow_sharing' => array(true),
'allow_sync' => array(false),
'sync_interval' => array(20),
'type' => array('sqlite', ''),
'pdo_dsn' => array('mysql:host=127.0.0.1;port=3306;dbname=rainloop', ''),
'pdo_user' => array('root', ''),