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:
parent
f86ca94b7e
commit
37acd1965b
@ -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');
|
||||
|
@ -10,6 +10,7 @@
|
||||
* later.
|
||||
*/
|
||||
|
||||
script('contacts', 'admin')
|
||||
?>
|
||||
|
||||
<div class="section">
|
||||
|
Loading…
Reference in New Issue
Block a user