Skip to content

Commit

Permalink
Merge pull request #165 from seansan/patch-21
Browse files Browse the repository at this point in the history
Simple improve of Not valid template file debugging
  • Loading branch information
Flyingmana authored Feb 16, 2017
2 parents 7a8658f + 1ca14c1 commit e7f6075
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/core/Mage/Core/Block/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ public function fetchView($fileName)
if ($includeFilePath != '' && (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks())) {
include $includeFilePath;
} else {
Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, true);
$thisClass = get_class($this);
Mage::log('Not valid template file:' . $fileName . ' class: ' . $thisClass, Zend_Log::CRIT, null, true);
}

} catch (Exception $e) {
Expand Down

0 comments on commit e7f6075

Please sign in to comment.