@@ -72,23 +72,23 @@ public function runAction()
7272 ->setNewStores ($ this ->getRequest ()->getPost ('new_stores ' , array ()))
7373 ->setIdentityKey ($ this ->getRequest ()->getParam ('identity_key ' ));
7474
75- // $result = $module->validateLicense();
76- // if (is_array($result) && isset($result['error'])) {
77- // Mage::getSingleton('adminhtml/session')->setFormData($this->getRequest()->getPost());
78-
79- // $error = call_user_func_array(array(Mage::helper('tmcore'), '__'), $result['error']);
80- // if (isset($result['response'])) {
81- // Mage::getSingleton('adminhtml/session')->setTmValidationInfo(
82- // array(
83- // 'error' => $error,
84- // 'response' => $result['response']
85- // )
86- // );
87- // } else {
88- // Mage::getSingleton('adminhtml/session')->addError($error);
89- // }
90- // return $this->_redirect('*/*/manage', array('id' => $module->getId()));
91- // }
75+ $ result = $ module ->validateLicense ();
76+ if (is_array ($ result ) && isset ($ result ['error ' ])) {
77+ Mage::getSingleton ('adminhtml/session ' )->setFormData ($ this ->getRequest ()->getPost ());
78+
79+ $ error = call_user_func_array (array (Mage::helper ('tmcore ' ), '__ ' ), $ result ['error ' ]);
80+ if (isset ($ result ['response ' ])) {
81+ Mage::getSingleton ('adminhtml/session ' )->setTmValidationInfo (
82+ array (
83+ 'error ' => $ error ,
84+ 'response ' => $ result ['response ' ]
85+ )
86+ );
87+ } else {
88+ Mage::getSingleton ('adminhtml/session ' )->addError ($ error );
89+ }
90+ return $ this ->_redirect ('*/*/manage ' , array ('id ' => $ module ->getId ()));
91+ }
9292
9393 $ module ->up ();
9494
0 commit comments