Skip to content

Commit

Permalink
[impr-OpenMage#165] Add filename to log msg when a template file isn'…
Browse files Browse the repository at this point in the history
…t valid
  • Loading branch information
seansan authored and edannenberg committed Apr 1, 2019
1 parent f32f938 commit bf82121
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 bf82121

Please sign in to comment.