File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 17
17
<config >
18
18
<modules >
19
19
<Mage_Core >
20
- <version >1.6.0.10 </version >
20
+ <version >1.6.0.11 </version >
21
21
</Mage_Core >
22
22
</modules >
23
23
<global >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * OpenMage
4
+ *
5
+ * This source file is subject to the Open Software License (OSL 3.0)
6
+ * that is bundled with this package in the file LICENSE.txt.
7
+ * It is also available at https://opensource.org/license/osl-3-0-php
8
+ *
9
+ * @category Mage
10
+ * @package Mage_Core
11
+ * @copyright Copyright (c) 2006-2020 Magento, Inc. (https://www.magento.com)
12
+ * @copyright Copyright (c) 2022 The OpenMage Contributors (https://www.openmage.org)
13
+ * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
14
+ */
15
+
16
+ /** @var Mage_Core_Model_Resource_Setup $installer */
17
+ $ installer = $ this ;
18
+ $ installer ->startSetup ();
19
+
20
+ $ table = $ installer ->getTable ('core/config_data ' );
21
+
22
+ if ($ installer ->getConnection ()->isTableExists ($ table )) {
23
+ $ oldPath = 'admin/security/crate_admin_user_notification ' ;
24
+ $ newPath = 'admin/security/create_admin_user_notification ' ;
25
+
26
+ $ select = $ installer ->getConnection ()->select ()
27
+ ->from ($ table , ['config_id ' , 'path ' ])
28
+ ->where ('path = ? ' , $ oldPath );
29
+
30
+ $ rows = $ installer ->getConnection ()->fetchAll ($ select );
31
+
32
+ foreach ($ rows as $ row ) {
33
+ $ installer ->getConnection ()->update (
34
+ $ table ,
35
+ ['path ' => $ newPath ],
36
+ ['config_id = ? ' => $ row ['config_id ' ]]
37
+ );
38
+ }
39
+ }
40
+
41
+ $ installer ->endSetup ();
You can’t perform that action at this time.
0 commit comments