-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
91 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,7 @@ class Ess_M2ePro_Block_Adminhtml_Wizard_Congratulation extends Mage_Adminhtml_Bl | |
protected function _toHtml() | ||
{ | ||
$content = Mage::helper('M2ePro')->__( | ||
'This wizard was already finished. | ||
Please <a href="%1%">Contact Us</a>, if it is need.', | ||
Mage::helper('M2ePro/Module_Support')->getSupportUrl() | ||
'Installation Wizard is completed. If you can\'t proceed, please contact us at <a href="mailto:[email protected]">[email protected]</a>.' | ||
); | ||
|
||
return <<<HTML | ||
|
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
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
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
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
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
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
34 changes: 34 additions & 0 deletions
34
app/code/community/Ess/M2ePro/sql/Update/y22_m06/FixMistakenConfigs.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
// @codingStandardsIgnoreFile | ||
|
||
class Ess_M2ePro_Sql_Update_y22_m06_FixMistakenConfigs extends | ||
Ess_M2ePro_Model_Upgrade_Feature_AbstractFeature | ||
{ | ||
public function execute() | ||
{ | ||
$configKeys = array('is_disabled', 'environment'); | ||
foreach ($configKeys as $configKey) { | ||
$this->fixMistakenConfig($configKey); | ||
} | ||
} | ||
|
||
private function fixMistakenConfig($configKey) | ||
{ | ||
$entity = $this->_installer->getMainConfigModifier()->getEntity('//', $configKey); | ||
|
||
if ($entity->getValue() === null) { | ||
return; | ||
} | ||
|
||
$updated = $this->_installer->getMainConfigModifier()->updateValue($entity->getValue(), array( | ||
'`group` = ?' => '/', | ||
'`key` = ?' => $configKey | ||
) | ||
); | ||
|
||
if ($updated > 0) { | ||
$entity->delete(); | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
app/code/community/Ess/M2ePro/sql/Upgrade/v6_23_1__v6_23_2/Config.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
/* | ||
* @author M2E Pro Developers Team | ||
* @copyright M2E LTD | ||
* @license Commercial use is forbidden | ||
*/ | ||
|
||
class Ess_M2ePro_Sql_Upgrade_v6_23_1__v6_23_2_Config extends Ess_M2ePro_Model_Upgrade_Feature_AbstractConfig | ||
{ | ||
public function getFeaturesList() | ||
{ | ||
return array( | ||
'@y22_m06/FixMistakenConfigs' | ||
); | ||
} | ||
} |
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
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
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
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
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