Load theming app css as well if legacy theme is enabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
a22bc0e787
commit
805f503814
|
@ -26,10 +26,6 @@
|
|||
*/
|
||||
|
||||
$app = new \OCP\AppFramework\App('theming');
|
||||
/** @var \OCA\Theming\Util $util */
|
||||
$util = $app->getContainer()->query(\OCA\Theming\Util::class);
|
||||
if(!$util->isAlreadyThemed()) {
|
||||
|
||||
$app->getContainer()->registerCapability(\OCA\Theming\Capabilities::class);
|
||||
|
||||
$linkToCSS = \OC::$server->getURLGenerator()->linkToRoute(
|
||||
|
@ -59,5 +55,3 @@ if(!$util->isAlreadyThemed()) {
|
|||
'nonce' => \OC::$server->getContentSecurityPolicyNonceManager()->getNonce()
|
||||
], ''
|
||||
);
|
||||
|
||||
}
|
Loading…
Reference in New Issue