summaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-29 20:53:19 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-29 20:53:19 +0200
commit650ef3331a92bac717f5501b79c01e2579506499 (patch)
tree590efa5cf718e2ad9d167285832a36b6193cb621 /controller
parent53b01ed13eedbaaca7a1f1e13653a95223ab41db (diff)
fix manifest test
Diffstat (limited to 'controller')
-rw-r--r--controller/appcontroller.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/controller/appcontroller.php b/controller/appcontroller.php
index e3d86a945..eea068d24 100644
--- a/controller/appcontroller.php
+++ b/controller/appcontroller.php
@@ -38,13 +38,13 @@ class AppController extends Controller {
/**
* @NoCSRFRequired
* @PublicPage
- *
+ *
* Generates a web app manifest, according to specs in:
* https://developer.mozilla.org/en-US/Apps/Build/Manifest
*/
public function manifest() {
$config = $this->appConfig->getConfig();
-
+
// size of the icons: 128x128 is required by FxOS for all app manifests
$iconSizes = ['128', '512'];
$icons = [];
@@ -57,19 +57,17 @@ class AppController extends Controller {
}
}
- $params = [
+ return [
"name" => $config['name'],
"description" => $config['description'],
"launch_path" => $this->urlGenerator->linkToRoute(
$config['id'] . '.page.index'),
- "icons" => $icons,
+ "icons" => $icons,
"developer" => [
"name" => "ownCloud community",
"url" => $config['homepage']
- ],
+ ]
];
-
- return $params;
}
} \ No newline at end of file