File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11# ryssbowh/craft-themes Changelog
22
3+ ## 2.1.5 - 2021-08-17
4+
5+ ### Fixed
6+ - Do not register bundles for cp requests
7+
38## 2.1.4 - 2021-07-14
49
510### Fixed
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ protected function resolveTheme(RegisterTemplateRootsEvent $event)
119119 \Yii::setAlias ('@themePath ' , '@root/themes/ ' . $ theme ->handle );
120120 \Yii::setAlias ('@themeWebPath ' , '@webroot/themes/ ' . $ theme ->handle );
121121 $ event ->roots ['' ] = array_merge ($ theme ->getTemplatePaths (), $ event ->roots ['' ] ?? []);
122- if (\Craft::$ app ->request instanceof Request) {
122+ if (\Craft::$ app ->request instanceof Request and \Craft:: $ app -> request -> isSiteRequest ) {
123123 $ path = \Craft::$ app ->request ->getPathInfo ();
124124 $ theme ->registerAssetBundles ($ path );
125125 }
You can’t perform that action at this time.
0 commit comments