1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

dont load scripts in other apps

This commit is contained in:
Bernhard Posselt 2015-01-14 16:21:06 +01:00 committed by Thomas Müller
parent f86ca94b7e
commit 37acd1965b
2 changed files with 6 additions and 2 deletions

View File

@ -37,8 +37,11 @@ $api->connectHook('OCA\Contacts', 'indexProperties', '\OCA\Contacts\Hooks', 'ind
$api->connectHook('OC_Calendar', 'getEvents', 'OCA\Contacts\Hooks', 'getBirthdayEvents');
$api->connectHook('OC_Calendar', 'getSources', 'OCA\Contacts\Hooks', 'getCalenderSources');
\OCP\Util::addscript('contacts', 'loader');
\OCP\Util::addscript('contacts', 'admin');
$url = \OC::$server->getRequest()->server['REQUEST_URI'];
if (preg_match('%index.php/apps/files(/.*)?%', $url)) {
\OCP\Util::addscript('contacts', 'loader');
}
\OC::$server->getSearch()->registerProvider('OCA\Contacts\Search\Provider', array('apps' => array('contacts')));
\OCP\Share::registerBackend('contact', 'OCA\Contacts\Share\Contact');

View File

@ -10,6 +10,7 @@
* later.
*/
script('contacts', 'admin')
?>
<div class="section">