mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Contacts: Load more preferences in js.
This commit is contained in:
parent
d059f9af09
commit
c9b4946e88
@ -23,3 +23,12 @@
|
||||
OCP\JSON::setContentTypeHeader('text/javascript');
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('contacts');
|
||||
|
||||
echo 'var contacts_groups_sortorder=[' . OCP\Config::getUserValue(OCP\USER::getUser(), 'contacts', 'groupsort', '') . '],';
|
||||
echo 'contacts_properties_indexed = '
|
||||
. (OCP\Config::getUserValue(OCP\USER::getUser(), 'contacts', 'contacts_properties_indexed', 'no') === 'no'
|
||||
? 'false' : 'true') . ',';
|
||||
echo 'contacts_categories_indexed = '
|
||||
. (OCP\Config::getUserValue(OCP\USER::getUser(), 'contacts', 'contacts_categories_indexed', 'no') === 'no'
|
||||
? 'false' : 'true') . ',';
|
||||
echo 'lang=\'' . OCP\Config::getUserValue(OCP\USER::getUser(), 'core', 'lang', 'en') . '\';';
|
||||
|
Loading…
Reference in New Issue
Block a user