Allow getAppFolder to get another apps path

cc @Raydiation
remotes/origin/fix-10825
Sander 2014-07-22 16:07:43 +07:00
parent 0567fd031f
commit eacdf26cde
1 changed files with 2 additions and 3 deletions

@ -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)) {