File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5454 && isset ($ _SERVER ['HTTP_ACCEPT ' ])
5555 && strpos ($ _SERVER ['HTTP_ACCEPT ' ], 'text/html ' ) !== false
5656) {
57- $ profilerFlag = isset ($ _SERVER ['MAGE_PROFILER ' ]) && strlen ($ _SERVER ['MAGE_PROFILER ' ])
57+ $ profilerConfig = isset ($ _SERVER ['MAGE_PROFILER ' ]) && strlen ($ _SERVER ['MAGE_PROFILER ' ])
5858 ? $ _SERVER ['MAGE_PROFILER ' ]
5959 : trim (file_get_contents (BP . '/var/profiler.flag ' ));
6060
61- \Magento \Framework \Profiler::applyConfig (
62- $ profilerFlag ,
61+ if ($ profilerConfig ) {
62+ $ profilerConfig = json_decode ($ profilerConfig , true ) ?: $ profilerConfig ;
63+ }
64+
65+ Magento \Framework \Profiler::applyConfig (
66+ $ profilerConfig ,
6367 BP ,
6468 !empty ($ _SERVER ['HTTP_X_REQUESTED_WITH ' ]) && $ _SERVER ['HTTP_X_REQUESTED_WITH ' ] == 'XMLHttpRequest '
6569 );
You can’t perform that action at this time.
0 commit comments