Skip to content

Commit 6e257ec

Browse files
author
Fred Sung
committed
MAGETWO-31688: Broken Links to Static Assets in Error Application
- Remove redundant path checking logic.
1 parent 93111b3 commit 6e257ec

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pub/errors/processor.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,6 @@ protected function _renderPage($template)
386386
protected function _getFilePath($file, $directories = null)
387387
{
388388
if (is_null($directories)) {
389-
$directories = [];
390-
391-
if (!$this->_root) {
392-
$directories[] = $this->_indexDir . self::ERROR_DIR . '/';
393-
}
394389
$directories[] = $this->_errorDir;
395390
}
396391

@@ -409,16 +404,6 @@ protected function _getFilePath($file, $directories = null)
409404
*/
410405
protected function _getTemplatePath($template)
411406
{
412-
$directories = [];
413-
414-
if (!$this->_root) {
415-
$directories[] = $this->_indexDir . self::ERROR_DIR . '/' . $this->_config->skin . '/';
416-
417-
if ($this->_config->skin != self::DEFAULT_SKIN) {
418-
$directories[] = $this->_indexDir . self::ERROR_DIR . '/' . self::DEFAULT_SKIN . '/';
419-
}
420-
}
421-
422407
$directories[] = $this->_errorDir . $this->_config->skin . '/';
423408

424409
if ($this->_config->skin != self::DEFAULT_SKIN) {

0 commit comments

Comments
 (0)