Created
August 4, 2015 03:00
-
-
Save fbrnc/3909f634bdd3258877a7 to your computer and use it in GitHub Desktop.
Magento Core Hacks :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- app/code/local/Mage/Core/Block/Template.php 2015-08-04 02:46:44.204327968 +0000 | |
+++ app/code/core/Mage/Core/Block/Template.php 2015-08-04 02:46:46.504296112 +0000 | |
@@ -237,7 +237,7 @@ | |
try { | |
$includeFilePath = realpath($this->_viewDir . DS . $fileName); | |
- if (!empty($includeFilePath) && (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks())) { | |
+ if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) { | |
include $includeFilePath; | |
} else { | |
Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment