Commit 6cd9274db28a465ae4321af07cf21e9af3d12444
1 parent
baca68a2
Add support for functions not being in the first phase of upgrades.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3497 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
lib/upgrades/UpgradeItems.inc.php
| ... | ... | @@ -304,7 +304,8 @@ class FunctionUpgradeItem extends UpgradeItem { |
| 304 | 304 | continue; |
| 305 | 305 | } |
| 306 | 306 | foreach ($funcs as $func) { |
| 307 | - $ret[] = new FunctionUpgradeItem($func, $version, $aUpgradeFunctions->descriptions[$func], 0); | |
| 307 | + $iPhase = KTUtil::arrayGet($aUpgradeFunctions->phases, $func, 0); | |
| 308 | + $ret[] = new FunctionUpgradeItem($func, $version, $aUpgradeFunctions->descriptions[$func], $iPhase); | |
| 308 | 309 | } |
| 309 | 310 | } |
| 310 | 311 | return $ret; | ... | ... |