aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander <brantje@gmail.com>2014-07-22 16:07:43 +0200
committerSander <brantje@gmail.com>2014-07-22 16:07:43 +0200
commiteacdf26cde0b2881f8ca4172625b5fa0bb100389 (patch)
treeeb15994e67084095b2ab9b422b4bdf2e3c04d63d
parent0567fd031fb242ce1583431cb47957d029d40136 (diff)
downloadnextcloud-server-eacdf26cde0b2881f8ca4172625b5fa0bb100389.tar.gz
nextcloud-server-eacdf26cde0b2881f8ca4172625b5fa0bb100389.zip
Allow getAppFolder to get another apps path
cc @Raydiation
-rw-r--r--lib/private/server.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 3237ce30ccf..a2cf80aeea4 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -280,9 +280,8 @@ class Server extends SimpleContainer implements IServerContainer {
*
* @return \OCP\Files\Folder
*/
- function getAppFolder() {
-
- $dir = '/' . \OC_App::getCurrentApp();
+ function getAppFolder($app) {
+ $dir = (!$app) ? '/' . \OC_App::getCurrentApp() : \OC_APP::getAppPath($app);
$root = $this->getRootFolder();
$folder = null;
if(!$root->nodeExists($dir)) {