Skip to content

Commit

Permalink
Update PathInfoProcessor.php
Browse files Browse the repository at this point in the history
Prevent PHPCBF Error
  • Loading branch information
Sylvain Rayé authored Oct 15, 2017
1 parent ac0406c commit 6ebf3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Store/App/Request/PathInfoProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function process(\Magento\Framework\App\RequestInterface $request, $pathI
}

if ($store->isUseStoreInUrl()) {
if (!$request->isDirectAccessFrontendName($storeCode) && $storeCode != Store::ADMIN_CODE ) {
if (!$request->isDirectAccessFrontendName($storeCode) && $storeCode != Store::ADMIN_CODE) {
$this->storeManager->setCurrentStore($storeCode);
$pathInfo = '/' . (isset($pathParts[1]) ? $pathParts[1] : '');
return $pathInfo;
Expand Down

0 comments on commit 6ebf3ce

Please sign in to comment.