aboutsummaryrefslogtreecommitdiffstats
path: root/apps/accessibility/appinfo/app.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-11-04 19:25:00 +0100
committerRobin Appelman <robin@icewind.nl>2019-11-04 19:51:37 +0100
commitef2fb51065aabb90e8e4234d84a78f4e047f7d1c (patch)
treea4a0152950139fb23255f68d7aaf6afd8a3b730f /apps/accessibility/appinfo/app.php
parent5ca27085fcb01db920326ea9ad892cc9a49253ab (diff)
downloadnextcloud-server-ef2fb51065aabb90e8e4234d84a78f4e047f7d1c.tar.gz
nextcloud-server-ef2fb51065aabb90e8e4234d84a78f4e047f7d1c.zip
remove missed manual Application instance constructions
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/accessibility/appinfo/app.php')
-rw-r--r--apps/accessibility/appinfo/app.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/accessibility/appinfo/app.php b/apps/accessibility/appinfo/app.php
index 96621a16829..4421c732bd8 100644
--- a/apps/accessibility/appinfo/app.php
+++ b/apps/accessibility/appinfo/app.php
@@ -22,10 +22,12 @@ declare (strict_types = 1);
*
*/
-$app = new \OCA\Accessibility\AppInfo\Application();
+use OCA\Accessibility\AppInfo\Application;
+
+$app = \OC::$server->query(Application::class);
// Separate from the constructor since the route are not initialized before that
// 1. create the app
// 2. generate css route and inject
$app->injectCss();
-$app->injectJavascript(); \ No newline at end of file
+$app->injectJavascript();