Last active
December 7, 2017 11:55
-
-
Save uzaharova/14500ef58b90108b0a303c9b43325ddb to your computer and use it in GitHub Desktop.
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
diff --git a/_tools/migration/scripts/4.7.1/post_script.php b/_tools/migration/scripts/4.7.1/post_script.php | |
index b3827bc..0b63358 100644 | |
--- a/_tools/migration/scripts/4.7.1/post_script.php | |
+++ b/_tools/migration/scripts/4.7.1/post_script.php | |
@@ -37,6 +37,7 @@ if (PRODUCT_BUILD == 'RU') { | |
if (empty($cities_addon_status) && !empty($addon_status)) { | |
fn_install_addon('rus_cities', false, false); | |
+ fn_load_addon('rus_cities'); | |
} | |
$pecom_status = db_get_field('SELECT addon FROM ?:addons WHERE addon = ?s', 'rus_pecom'); |
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
diff --git a/app/addons/rus_pecom/addon.xml b/app/addons/rus_pecom/addon.xml | |
index 1cff257..41c67f2 100644 | |
--- a/app/addons/rus_pecom/addon.xml | |
+++ b/app/addons/rus_pecom/addon.xml | |
@@ -30,7 +30,7 @@ | |
<item for="uninstall">DROP TABLE IF EXISTS ?:rus_pecom_cities_link</item> | |
</queries> | |
<functions> | |
- <item for="install">fn_rus_pecom_install</item> | |
- <item for="uninstall">fn_rus_pecom_uninstall</item> | |
+ <item for="install">fn_rus_pecom_addon_install</item> | |
+ <item for="uninstall">fn_rus_pecom_addon_uninstall</item> | |
</functions> | |
</addon> |
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
diff --git a/app/addons/rus_pecom/func.php b/app/addons/rus_pecom/func.php | |
index 9dd9695..79d89f6 100644 | |
--- a/app/addons/rus_pecom/func.php | |
+++ b/app/addons/rus_pecom/func.php | |
@@ -17,7 +17,7 @@ if (!defined('BOOTSTRAP')) { die('Access denied'); } | |
use Tygh\Registry; | |
use Tygh\Languages\Languages; | |
-function fn_rus_pecom_install() | |
+function fn_rus_pecom_addon_install() | |
{ | |
$objects = fn_rus_pecom_schema(); | |
@@ -41,7 +41,7 @@ function fn_rus_pecom_install() | |
fn_rus_cities_read_cities_by_chunk($path, RUS_CITIES_FILE_READ_CHUNK_SIZE, 'fn_rus_pecom_add_cities_in_table'); | |
} | |
-function fn_rus_pecom_uninstall() | |
+function fn_rus_pecom_addon_uninstall() | |
{ | |
$objects = fn_rus_pecom_schema(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment