File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/code/Magento/Backend/App/Area Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,16 @@ public function getFrontName($checkHost = false)
120
120
*/
121
121
public function isHostBackend ()
122
122
{
123
- if ($ this ->config ->getValue (self ::XML_PATH_USE_CUSTOM_ADMIN_URL )) {
124
- $ backendUrl = $ this ->config ->getValue (self ::XML_PATH_CUSTOM_ADMIN_URL );
123
+ if ($ this ->scopeConfig ->getValue (self ::XML_PATH_USE_CUSTOM_ADMIN_URL , ScopeInterface:: SCOPE_STORE )) {
124
+ $ backendUrl = $ this ->scopeConfig ->getValue (self ::XML_PATH_CUSTOM_ADMIN_URL , ScopeInterface:: SCOPE_STORE );
125
125
} else {
126
126
$ backendUrl = $ this ->config ->getValue (Store::XML_PATH_UNSECURE_BASE_URL );
127
+ if ($ backendUrl === null ) {
128
+ $ backendUrl = $ this ->scopeConfig ->getValue (
129
+ Store::XML_PATH_UNSECURE_BASE_URL ,
130
+ ScopeInterface::SCOPE_STORE
131
+ );
132
+ }
127
133
}
128
134
$ host = $ this ->request ->getServer ('HTTP_HOST ' , '' );
129
135
return stripos ($ this ->getHostWithPort ($ backendUrl ), (string ) $ host ) !== false ;
You can’t perform that action at this time.
0 commit comments