From 3b6a903db48573f989ec621c9002eb8ea4154e1b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 27 May 2019 23:48:36 +0200 Subject: [PATCH] don't load css in backend, only in sandbox --- Controller/BackendController.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 7730f0f..7da0688 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -167,10 +167,6 @@ final class BackendController extends Controller $tcoll['template'] = $tMedia; } elseif (StringUtils::endsWith($lowerPath, '.css')) { $tcoll['css'] = $tMedia; - - /** @var \phpOMS\Model\Html\Head $head */ - $head = $response->get('Content')->getData('head'); - $head->addAsset(AssetType::CSS, $request->getUri()->getBase() . $tMedia->getPath()); } elseif (StringUtils::endsWith($lowerPath, '.js')) { $tcoll['js'] = $tMedia; } elseif (StringUtils::endsWith($lowerPath, '.sqlite') || StringUtils::endsWith($lowerPath, '.db')) {