diff options
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r-- | settings/js/apps.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index d9817aff6b6..1ae45932172 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -27,7 +27,15 @@ OC.Settings.Apps = OC.Settings.Apps || { } page.find('small.externalapp').attr('style', 'visibility:visible'); page.find('span.author').text(app.author); - page.find('span.licence').text(app.license); + + // FIXME licenses of downloaded apps go into app.licence, licenses of not-downloaded apps into app.license + var appLicense = ''; + if (typeof(app.licence) !== 'undefined') { + appLicense = app.licence; + } else if (typeof(app.license) !== 'undefined') { + appLicense = app.license; + } + page.find('span.licence').text(appLicense); if (app.update !== false) { page.find('input.update').show(); |