summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-01 14:28:45 +0200
committerVincent Petry <pvince81@owncloud.com>2014-07-01 14:28:45 +0200
commit894d69184abc78750160d4818412e45fdc22a81b (patch)
treedc36d4edb04c095757e4990b0d29392e786620db /lib/private/util.php
parent431f8bd08e8ddf5db5f498c8f6575fe36423f295 (diff)
downloadnextcloud-server-894d69184abc78750160d4818412e45fdc22a81b.tar.gz
nextcloud-server-894d69184abc78750160d4818412e45fdc22a81b.zip
Add bak defaultapp setting
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-xlib/private/util.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 7836489832d..424c27e74a7 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -827,7 +827,9 @@ class OC_Util {
if ($defaultPage) {
$location = $urlGenerator->getAbsoluteURL($defaultPage);
} else {
- $location = $urlGenerator->getAbsoluteURL('/index.php/apps/files');
+ $defaultApp = \OCP\Config::getSystemValue('defaultapp', 'files');
+ $defaultApp = OC_App::cleanAppId(strip_tags($defaultApp));
+ $location = $urlGenerator->getAbsoluteURL('/index.php/apps/' . $defaultApp);
}
}
OC_Log::write('core', 'redirectToDefaultPage: '.$location, OC_Log::DEBUG);