@@ -26,22 +26,22 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | $eventDispatcher = \OC::$server->getEventDispatcher(); |
| 28 | 28 | $eventDispatcher->addListener( |
| 29 | - 'OCA\Files::loadAdditionalScripts', |
|
| 30 | - function() { |
|
| 31 | - // FIXME: no public API for these ? |
|
| 32 | - \OCP\Util::addScript('oc-backbone-webdav'); |
|
| 33 | - \OCP\Util::addScript('systemtags/merged'); |
|
| 34 | - \OCP\Util::addScript('systemtags', 'merged'); |
|
| 35 | - \OCP\Util::addStyle('systemtags'); |
|
| 36 | - \OCP\Util::addStyle('systemtags', 'systemtagsfilelist'); |
|
| 37 | - } |
|
| 29 | + 'OCA\Files::loadAdditionalScripts', |
|
| 30 | + function() { |
|
| 31 | + // FIXME: no public API for these ? |
|
| 32 | + \OCP\Util::addScript('oc-backbone-webdav'); |
|
| 33 | + \OCP\Util::addScript('systemtags/merged'); |
|
| 34 | + \OCP\Util::addScript('systemtags', 'merged'); |
|
| 35 | + \OCP\Util::addStyle('systemtags'); |
|
| 36 | + \OCP\Util::addStyle('systemtags', 'systemtagsfilelist'); |
|
| 37 | + } |
|
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | 40 | $managerListener = function(ManagerEvent $event) { |
| 41 | - $application = new \OCP\AppFramework\App('systemtags'); |
|
| 42 | - /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
| 43 | - $listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener'); |
|
| 44 | - $listener->event($event); |
|
| 41 | + $application = new \OCP\AppFramework\App('systemtags'); |
|
| 42 | + /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
| 43 | + $listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener'); |
|
| 44 | + $listener->event($event); |
|
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | 47 | $eventDispatcher->addListener(ManagerEvent::EVENT_CREATE, $managerListener); |
@@ -49,23 +49,23 @@ discard block |
||
| 49 | 49 | $eventDispatcher->addListener(ManagerEvent::EVENT_UPDATE, $managerListener); |
| 50 | 50 | |
| 51 | 51 | $mapperListener = function(MapperEvent $event) { |
| 52 | - $application = new \OCP\AppFramework\App('systemtags'); |
|
| 53 | - /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
| 54 | - $listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener'); |
|
| 55 | - $listener->mapperEvent($event); |
|
| 52 | + $application = new \OCP\AppFramework\App('systemtags'); |
|
| 53 | + /** @var \OCA\SystemTags\Activity\Listener $listener */ |
|
| 54 | + $listener = $application->getContainer()->query('OCA\SystemTags\Activity\Listener'); |
|
| 55 | + $listener->mapperEvent($event); |
|
| 56 | 56 | }; |
| 57 | 57 | |
| 58 | 58 | $eventDispatcher->addListener(MapperEvent::EVENT_ASSIGN, $mapperListener); |
| 59 | 59 | $eventDispatcher->addListener(MapperEvent::EVENT_UNASSIGN, $mapperListener); |
| 60 | 60 | |
| 61 | 61 | \OCA\Files\App::getNavigationManager()->add(function () { |
| 62 | - $l = \OC::$server->getL10N('systemtags'); |
|
| 63 | - return [ |
|
| 64 | - 'id' => 'systemtagsfilter', |
|
| 65 | - 'appname' => 'systemtags', |
|
| 66 | - 'script' => 'list.php', |
|
| 67 | - 'order' => 25, |
|
| 68 | - 'name' => $l->t('Tags'), |
|
| 69 | - ]; |
|
| 62 | + $l = \OC::$server->getL10N('systemtags'); |
|
| 63 | + return [ |
|
| 64 | + 'id' => 'systemtagsfilter', |
|
| 65 | + 'appname' => 'systemtags', |
|
| 66 | + 'script' => 'list.php', |
|
| 67 | + 'order' => 25, |
|
| 68 | + 'name' => $l->t('Tags'), |
|
| 69 | + ]; |
|
| 70 | 70 | }); |
| 71 | 71 | |