Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Stop Share Notification Dispatcher if noone is listening
Browse files Browse the repository at this point in the history
  • Loading branch information
ghecquet committed Mar 9, 2016
1 parent 921a96f commit 8074611
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 616 deletions.
11 changes: 9 additions & 2 deletions core/src/plugins/access.inbox/class.inboxAccessDriver.php
Expand Up @@ -66,7 +66,11 @@ public function switchAction($action, $httpVars, $fileVars) {
$repositoryId = $n->getRepositoryId();
$n->getRepository()->driverInstance = null;

ConfService::loadDriverForRepository($n->getRepository());
try {
ConfService::loadDriverForRepository($n->getRepository());
} catch (\Exception $e) {
continue;
}

$repository = $n->getRepository();

Expand Down Expand Up @@ -210,7 +214,10 @@ public static function getNodes(){
if ($repo->hasContentFilter()) {
$cFilter = $repo->getContentFilter();
$filter = ($cFilter instanceof ContentFilter) ? array_keys($cFilter->filters)[0] : $cFilter;
$label = basename($filter);

if (!is_array($filter)) {
$label = basename($filter);
}
}

if (empty($label)) {
Expand Down
273 changes: 0 additions & 273 deletions core/src/plugins/access.inbox/res/build/ShareNotificationUI.js

This file was deleted.

This file was deleted.

0 comments on commit 8074611

Please sign in to comment.