From 6cd9274db28a465ae4321af07cf21e9af3d12444 Mon Sep 17 00:00:00 2001 From: nbm Date: Sun, 31 Jul 2005 08:35:27 +0000 Subject: [PATCH] Add support for functions not being in the first phase of upgrades. --- lib/upgrades/UpgradeItems.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/upgrades/UpgradeItems.inc.php b/lib/upgrades/UpgradeItems.inc.php index a640c1e..c813034 100644 --- a/lib/upgrades/UpgradeItems.inc.php +++ b/lib/upgrades/UpgradeItems.inc.php @@ -304,7 +304,8 @@ class FunctionUpgradeItem extends UpgradeItem { continue; } foreach ($funcs as $func) { - $ret[] = new FunctionUpgradeItem($func, $version, $aUpgradeFunctions->descriptions[$func], 0); + $iPhase = KTUtil::arrayGet($aUpgradeFunctions->phases, $func, 0); + $ret[] = new FunctionUpgradeItem($func, $version, $aUpgradeFunctions->descriptions[$func], $iPhase); } } return $ret; -- libgit2 0.21.4