diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-17 15:33:55 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-17 15:43:48 +0100 |
commit | 57ceed590ab8108c9cca5fb4a6f32f9456c7add8 (patch) | |
tree | fb5ca880254c5cfca7d842658a55ef2e31ef5113 /lib | |
parent | 06141ed95a87e40dded4db6bedc4b643cdfdda0e (diff) | |
download | nextcloud-server-57ceed590ab8108c9cca5fb4a6f32f9456c7add8.tar.gz nextcloud-server-57ceed590ab8108c9cca5fb4a6f32f9456c7add8.zip |
only hard depend on the info.xml and not the app.php
fix comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/app.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 97b975d2453..965b11d4bf6 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -60,7 +60,7 @@ class OC_App { * @return bool * * This function walks through the ownCloud directory and loads all apps - * it can find. A directory contains an app if the file /appinfo/app.php + * it can find. A directory contains an app if the file /appinfo/info.xml * exists. * * if $types is set, only apps of those types will be loaded @@ -746,7 +746,7 @@ class OC_App { if (is_resource($dh)) { while (($file = readdir($dh)) !== false) { - if ($file[0] != '.' and is_file($apps_dir['path'] . '/' . $file . '/appinfo/app.php')) { + if ($file[0] != '.' and is_file($apps_dir['path'] . '/' . $file . '/appinfo/info.xml')) { $apps[] = $file; @@ -880,7 +880,7 @@ class OC_App { /** * get a list of all apps on apps.owncloud.com - * + * * @return array|false multi-dimensional array of apps. * Keys: id, name, type, typename, personid, license, detailpage, preview, changed, description */ |