summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-28 22:42:43 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-28 22:42:43 +0200
commit1d04843ef07abe16132badc4d062a1321a18d211 (patch)
tree09682f4cdb0ba5fd93ff182385b7f1d29b4be4a7
parent6c7efd5dacaf9144b715ad6db408ce53d0682cbe (diff)
downloadnextcloud-server-1d04843ef07abe16132badc4d062a1321a18d211.tar.gz
nextcloud-server-1d04843ef07abe16132badc4d062a1321a18d211.zip
no duplicate declaration of appLicense + camelCase
-rw-r--r--settings/js/apps.js9
1 files changed, 4 insertions, 5 deletions
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();