aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-05-30 12:41:35 +0200
committerJoas Schilling <coding@schilljs.com>2022-05-30 12:41:35 +0200
commitf9efc410fa6d7cbe01b01ae9cdc7ea31cf0de48e (patch)
tree0a6714b1114b0b69cc33a1f11cfcda82ac521030 /lib
parenteb1a69d6271efeee47824f6ac27493d999cc8f84 (diff)
downloadnextcloud-server-f9efc410fa6d7cbe01b01ae9cdc7ea31cf0de48e.tar.gz
nextcloud-server-f9efc410fa6d7cbe01b01ae9cdc7ea31cf0de48e.zip
Restore old behaviour of sending flase for not found apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/JSConfigHelper.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php
index 47cde1b89bd..a7b9fd35fd8 100644
--- a/lib/private/Template/JSConfigHelper.php
+++ b/lib/private/Template/JSConfigHelper.php
@@ -36,6 +36,7 @@ namespace OC\Template;
use bantu\IniGetWrapper\IniGetWrapper;
use OC\CapabilitiesManager;
use OC\Share\Share;
+use OCP\App\AppPathNotFoundException;
use OCP\App\IAppManager;
use OCP\Constants;
use OCP\Defaults;
@@ -115,10 +116,13 @@ class JSConfigHelper {
}
foreach ($apps as $app) {
- $apps_paths[$app] = $this->appManager->getAppWebPath($app);
+ try {
+ $apps_paths[$app] = $this->appManager->getAppWebPath($app);
+ } catch (AppPathNotFoundException $e) {
+ $apps_paths[$app] = false;
+ }
}
-
$enableLinkPasswordByDefault = $this->config->getAppValue('core', 'shareapi_enable_link_password_by_default', 'no');
$enableLinkPasswordByDefault = $enableLinkPasswordByDefault === 'yes';
$defaultExpireDateEnabled = $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no') === 'yes';