Permalink
Browse files

Bugfix to work around core/template::getDesignConfig() being protected

  • Loading branch information...
1 parent ae8be52 commit 4991967db48fc982e8b70b9f0cda1e33c7a850ad @Vinai committed Nov 15, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/code/community/Netzarbeiter/CustomerActivation/Helper/Data.php
@@ -139,7 +139,12 @@ protected function _sendNotificationEmail($to, $customer, $templateConfigPath, $
*/
protected function _setEmailDesignConfig(Mage_Core_Model_Email_Template $mailTemplate, $storeId)
{
- if ($this->_origEmailDesignConfig = $mailTemplate->getDesignConfig()) {
+ // Workaround for bug in Mage_Core_Model_Template
+ $method = new ReflectionMethod($mailTemplate, 'getDesignConfig');
+ if ($method->isProtected()) {
+ $method->setAccessible(true);
+ }
+ if ($this->_origEmailDesignConfig = $method->invoke($mailTemplate)) {
$this->_origEmailDesignConfig = $this->_origEmailDesignConfig->getData();
} else {
$this->_origEmailDesignConfig = array(

0 comments on commit 4991967

Please sign in to comment.