summaryrefslogtreecommitdiffstats
path: root/settings/apps.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/apps.php')
-rw-r--r--settings/apps.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/apps.php b/settings/apps.php
index a1c1bf6aa53..99a3094399d 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -21,8 +21,8 @@
*
*/
-require_once '../lib/base.php';
OC_Util::checkAdminUser();
+OC_App::loadApps();
// Load the files we need
OC_Util::addStyle( "settings", "settings" );
@@ -77,7 +77,7 @@ foreach ( $installedApps as $app ) {
}
- $info['preview'] = 'trans.png';
+ $info['preview'] = OC_Helper::imagePath('settings', 'trans.png');
$info['version'] = OC_App::getAppVersion($app);
@@ -95,11 +95,11 @@ if ( $remoteApps ) {
foreach ( $remoteApps AS $key => $remote ) {
- if (
+ if (
$app['name'] == $remote['name']
- // To set duplicate detection to use OCS ID instead of string name,
- // enable this code, remove the line of code above,
- // and add <ocs_id>[ID]</ocs_id> to info.xml of each 3rd party app:
+ // To set duplicate detection to use OCS ID instead of string name,
+ // enable this code, remove the line of code above,
+ // and add <ocs_id>[ID]</ocs_id> to info.xml of each 3rd party app:
// OR $app['ocs_id'] == $remote['ocs_id']
) {