From: Thomas Müller Date: Wed, 28 Aug 2013 20:42:43 +0000 (+0200) Subject: no duplicate declaration of appLicense + camelCase X-Git-Tag: v6.0.0alpha2~248^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1d04843ef07abe16132badc4d062a1321a18d211;p=nextcloud-server.git no duplicate declaration of appLicense + camelCase --- diff --git a/settings/js/apps.js b/settings/js/apps.js index 3372d769bd3..1ae45932172 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -29,14 +29,13 @@ OC.Settings.Apps = OC.Settings.Apps || { page.find('span.author').text(app.author); // FIXME licenses of downloaded apps go into app.licence, licenses of not-downloaded apps into app.license + var appLicense = ''; if (typeof(app.licence) !== 'undefined') { - var applicense = app.licence; + appLicense = app.licence; } else if (typeof(app.license) !== 'undefined') { - var applicense = app.license; - } else { - var applicense = ''; + appLicense = app.license; } - page.find('span.licence').text(applicense); + page.find('span.licence').text(appLicense); if (app.update !== false) { page.find('input.update').show();