Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
622c4cf7
Commit
622c4cf7
authored
Jan 06, 2015
by
Thomas Müller
Browse files
Merge pull request #13122 from owncloud/fix-licence-apps-management
fixing wrong usage of license vs licence
parents
68efeba3
fc38d4cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
settings/controller/appsettingscontroller.php
View file @
622c4cf7
...
...
@@ -120,6 +120,8 @@ class AppSettingsController extends Controller {
// fix groups to be an array
$dependencyAnalyzer
=
new
DependencyAnalyzer
(
new
Platform
(
$this
->
config
),
$this
->
l10n
);
$apps
=
array_map
(
function
(
$app
)
use
(
$dependencyAnalyzer
)
{
// fix groups
$groups
=
array
();
if
(
is_string
(
$app
[
'groups'
]))
{
$groups
=
json_decode
(
$app
[
'groups'
]);
...
...
@@ -127,11 +129,16 @@ class AppSettingsController extends Controller {
$app
[
'groups'
]
=
$groups
;
$app
[
'canUnInstall'
]
=
!
$app
[
'active'
]
&&
$app
[
'removable'
];
// fix licence vs license
if
(
isset
(
$app
[
'license'
])
&&
!
isset
(
$app
[
'licence'
]))
{
$app
[
'licence'
]
=
$app
[
'license'
];
}
// analyse dependencies
$missing
=
$dependencyAnalyzer
->
analyze
(
$app
);
$app
[
'canInstall'
]
=
empty
(
$missing
);
$app
[
'missingDependencies'
]
=
$missing
;
return
$app
;
},
$apps
);
...
...
settings/templates/apps.php
View file @
622c4cf7
...
...
@@ -22,8 +22,8 @@
<
h2
class
=
"
app-name
"
><
a
href
=
"
{{detailpage}}
"
target
=
"
_blank
"
>
{{
name
}}
<
/a></
h2
>
<
div
class
=
"
app-version
"
>
{{
version
}}
<
/div
>
<
div
class
=
"
app-author
"
>
<?php
p
(
$l
->
t
(
'by'
));
?>
{{
author
}}
{{
#
if
licen
s
e
}}
({{
licen
s
e
}}
-
<?php
p
(
$l
->
t
(
'licensed'
));
?>
)
{{
#
if
licen
c
e
}}
({{
licen
c
e
}}
-
<?php
p
(
$l
->
t
(
'licensed'
));
?>
)
{{
/
if
}}
<
/div
>
{{
#
if
score
}}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment