File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
code/Magento/Theme/Controller/Result
blank/Magento_Theme/layout
luma/Magento_Theme/layout Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function beforeSendResponse(Http $subject): void
41
41
{
42
42
$ content = $ subject ->getContent ();
43
43
44
- if (strpos ($ content , '</body ' ) !== false && $ this ->scopeConfig ->isSetFlag (
44
+ if (\is_string ( $ content ) && strpos ($ content , '</body ' ) !== false && $ this ->scopeConfig ->isSetFlag (
45
45
self ::XML_PATH_USE_CSS_CRITICAL_PATH ,
46
46
ScopeInterface::SCOPE_STORE
47
47
)) {
Original file line number Diff line number Diff line change 10
10
<css src =" css/styles-m.css" />
11
11
<css src =" css/styles-l.css" media =" screen and (min-width: 768px)" />
12
12
<css src =" css/print.css" media =" print" />
13
- <font src =" fonts/opensans/light/opensans-300.woff2" />
14
- <font src =" fonts/opensans/regular/opensans-400.woff2" />
15
- <font src =" fonts/opensans/semibold/opensans-600.woff2" />
16
- <font src =" fonts/opensans/bold/opensans-700.woff2" />
17
- <font src =" fonts/Luma-Icons.woff2" />
18
13
<meta name =" format-detection" content =" telephone=no" />
19
14
</head >
20
15
</page >
Original file line number Diff line number Diff line change 8
8
<page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
9
<head >
10
10
<meta name =" viewport" content =" width=device-width, initial-scale=1" />
11
+ <font src =" fonts/opensans/light/opensans-300.woff2" />
12
+ <font src =" fonts/opensans/regular/opensans-400.woff2" />
13
+ <font src =" fonts/opensans/semibold/opensans-600.woff2" />
14
+ <font src =" fonts/opensans/bold/opensans-700.woff2" />
15
+ <font src =" fonts/Luma-Icons.woff2" />
11
16
</head >
12
17
</page >
You can’t perform that action at this time.
0 commit comments