From e2500becfd8566f9855f15c8638610558da6d32b Mon Sep 17 00:00:00 2001 From: Mario O Date: Thu, 3 Mar 2016 21:17:55 +0200 Subject: [PATCH] Adds block method _getApp to support Magento CE 1.7 #57 --- code/Debug/Block/Abstract.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/Debug/Block/Abstract.php b/code/Debug/Block/Abstract.php index 8414598..bc2d359 100644 --- a/code/Debug/Block/Abstract.php +++ b/code/Debug/Block/Abstract.php @@ -39,6 +39,18 @@ public function getCacheLifetime() return null; } + /** + * Retrieve application instance + * + * Method added to support Magento CE 1.7 + * + * @return Mage_Core_Model_App + */ + protected function _getApp() + { + return Mage::app(); + } + /** * Returns id for default configured store