aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/theming/lib/Controller/ThemingController.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php
index f41b9062a11..e7865b90cf0 100644
--- a/apps/theming/lib/Controller/ThemingController.php
+++ b/apps/theming/lib/Controller/ThemingController.php
@@ -110,7 +110,7 @@ class ThemingController extends Controller {
IAppData $appData,
SCSSCacher $scssCacher,
IURLGenerator $urlGenerator,
- IAppManager $appManager = NULL
+ IAppManager $appManager
) {
parent::__construct($appName, $request);
@@ -123,12 +123,7 @@ class ThemingController extends Controller {
$this->appData = $appData;
$this->scssCacher = $scssCacher;
$this->urlGenerator = $urlGenerator;
-
- if (!is_null($appManager)) {
- $this->appManager = $appManager;
- } else {
- $this->appManager = \OC::$server->getAppManager();
- }
+ $this->appManager = $appManager;
}
/**