Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-02-26 02:10:54 +0300
committerGitHub <noreply@github.com>2020-02-26 02:10:54 +0300
commita5a58649b3cf83717515dc4ff9468822ad74131e (patch)
tree38fb45371a5e1fbf95a16f092b382b0b71b47f98
parent2ebf88a98c5eda6f120d8c70088aeccb59497c11 (diff)
parent3894dcb756e9c5501e063d6c44af9712f3ef44c1 (diff)
Merge pull request #19433 from nextcloud/bugfix/noid/fix-installing-talk
Fix installing Talk due to hardcoded route
-rw-r--r--lib/private/AppFramework/App.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/private/AppFramework/App.php b/lib/private/AppFramework/App.php
index a36e013cb68..2cbe623bb27 100644
--- a/lib/private/AppFramework/App.php
+++ b/lib/private/AppFramework/App.php
@@ -68,8 +68,19 @@ class App {
if (isset($appInfo['namespace'])) {
self::$nameSpaceCache[$appId] = trim($appInfo['namespace']);
} else {
- // if the tag is not found, fall back to uppercasing the first letter
- self::$nameSpaceCache[$appId] = ucfirst($appId);
+ if ($appId !== 'spreed') {
+ // if the tag is not found, fall back to uppercasing the first letter
+ self::$nameSpaceCache[$appId] = ucfirst($appId);
+ } else {
+ // For the Talk app (appid spreed) the above fallback doesn't work.
+ // This leads to a problem when trying to install it freshly,
+ // because the apps namespace is already registered before the
+ // app is downloaded from the appstore, because of the hackish
+ // global route index.php/call/{token} which is registered via
+ // the core/routes.php so it does not have the app namespace.
+ // @ref https://github.com/nextcloud/server/pull/19433
+ self::$nameSpaceCache[$appId] = 'Talk';
+ }
}
return $topNamespace . self::$nameSpaceCache[$appId];