summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-08 20:38:10 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-08 20:48:16 +0200
commit0032a5c2d1e43e9b355b887f15e3caee17048d6e (patch)
tree53a59e7199677d22b7147ba16bbae90da393b5ef /lib
parent679185028fea894fd4fe2183859610aa32228ae4 (diff)
downloadnextcloud-server-0032a5c2d1e43e9b355b887f15e3caee17048d6e.tar.gz
nextcloud-server-0032a5c2d1e43e9b355b887f15e3caee17048d6e.zip
Hanlde Core and Settings app in AppFramework
'core' and 'settings' are just apps but we treat them slightly different. Make sure that we construct the correct namespace so we can actually do automatic AppFramework stuff.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/App.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/AppFramework/App.php b/lib/private/AppFramework/App.php
index 01844e4c2d5..c7670953b4e 100644
--- a/lib/private/AppFramework/App.php
+++ b/lib/private/AppFramework/App.php
@@ -93,7 +93,13 @@ class App {
try {
$controller = $container->query($controllerName);
} catch(QueryException $e) {
- $appNameSpace = self::buildAppNamespace($appName);
+ if ($appName === 'core') {
+ $appNameSpace = 'OC\\Core';
+ } else if ($appName === 'settings') {
+ $appNameSpace = 'OC\\Settings';
+ } else {
+ $appNameSpace = self::buildAppNamespace($appName);
+ }
$controllerName = $appNameSpace . '\\Controller\\' . $controllerName;
$controller = $container->query($controllerName);
}