We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaba8c2 commit 7e7b645Copy full SHA for 7e7b645
lib/internal/Magento/Framework/App/Request/Http.php
@@ -199,8 +199,8 @@ public function isDirectAccessFrontendName($code)
199
*/
200
public function getBasePath()
201
{
202
- return empty(parent::getBasePath()) ? '/'
203
- : str_replace('\\', '/', parent::getBasePath());
+ $path = parent::getBasePath();
+ return empty($path) ? '/' : str_replace('\\', '/', $path);
204
}
205
206
/**
@@ -306,8 +306,8 @@ public function getBeforeForwardInfo($name = null)
306
public function isAjax()
307
308
return $this->isXmlHttpRequest()
309
- || $this->getParam('ajax', null)
310
- || $this->getParam('isAjax', null);
+ || $this->getParam('ajax')
+ || $this->getParam('isAjax');
311
312
313
0 commit comments