summaryrefslogtreecommitdiffstats
path: root/apps/theming/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/appinfo/app.php')
-rw-r--r--apps/theming/appinfo/app.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/theming/appinfo/app.php b/apps/theming/appinfo/app.php
index dc8e00f4ed5..ba60d44870b 100644
--- a/apps/theming/appinfo/app.php
+++ b/apps/theming/appinfo/app.php
@@ -25,7 +25,9 @@
*
*/
-$app = new \OCP\AppFramework\App('theming');
+use OCA\Theming\AppInfo\Application;
+
+$app = \OC::$server->query(Application::class);
$app->getContainer()->registerCapability(\OCA\Theming\Capabilities::class);
$linkToCSS = \OC::$server->getURLGenerator()->linkToRoute(