Skip to content
Snippets Groups Projects
Commit eacdf26c authored by Sander's avatar Sander
Browse files

Allow getAppFolder to get another apps path

cc @Raydiation
parent 0567fd03
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment