Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Created August 4, 2015 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbrnc/3909f634bdd3258877a7 to your computer and use it in GitHub Desktop.
Save fbrnc/3909f634bdd3258877a7 to your computer and use it in GitHub Desktop.
Magento Core Hacks :)
--- 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