]> source.dussan.org Git - nextcloud-server.git/commitdiff
no duplicate declaration of appLicense + camelCase
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 28 Aug 2013 20:42:43 +0000 (22:42 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 28 Aug 2013 20:42:43 +0000 (22:42 +0200)
settings/js/apps.js

index 3372d769bd321f8f265e793105249b35a6d2f8c9..1ae45932172577b81db6e954e201c7bc4254eaf5 100644 (file)
@@ -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();