diff options
Diffstat (limited to 'lib/Controller/DocumentController.php')
-rw-r--r-- | lib/Controller/DocumentController.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/Controller/DocumentController.php b/lib/Controller/DocumentController.php index 1ed67f21..c946c66c 100644 --- a/lib/Controller/DocumentController.php +++ b/lib/Controller/DocumentController.php @@ -44,6 +44,8 @@ use OCP\Share\IManager; use OC\Files\Type\TemplateManager; class DocumentController extends Controller { + use TDocumentInitialState; + /** @var string */ private $uid; /** @var IL10N */ @@ -179,20 +181,6 @@ class DocumentController extends Controller { $response->setFeaturePolicy($featurePolicy); } - private function provideDocumentInitialState(Wopi $wopi) { - $this->initialState->provideInitialState('wopi', $wopi); - $this->initialState->provideInitialState('uiDefaults', [ - 'UIMode' => $this->config->getAppValue(Application::APPNAME, 'uiDefaults-UIMode', 'classic') - ]); - $logoSet = $this->config->getAppValue('theming', 'logoheaderMime', '') !== ''; - if (!$logoSet) { - $logoSet = $this->config->getAppValue('theming', 'logoMime', '') !== ''; - } - $this->initialState->provideInitialState('theming-customLogo', ($logoSet ? - \OC::$server->getURLGenerator()->getAbsoluteURL(\OC::$server->getThemingDefaults()->getLogo()) - : false)); - } - /** * @NoAdminRequired * |