Allow getAppFolder to get another apps path

cc @Raydiation
This commit is contained in:
Sander 2014-07-22 16:07:43 +02:00
parent 0567fd031f
commit eacdf26cde

View file

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