no duplicate declaration of appLicense + camelCase

This commit is contained in:
Thomas Müller 2013-08-28 22:42:43 +02:00
parent 6c7efd5dac
commit 1d04843ef0
1 changed files with 4 additions and 5 deletions

View 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();