Fixes to install & uninstall procedure
This commit is contained in:
parent
53b93d01ef
commit
4552089c19
5 changed files with 227 additions and 221 deletions
|
@ -79,8 +79,11 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
}
|
||||
|
||||
protected function _initUpgrade() {
|
||||
Logging::info("Checking if upgrade is needed...");
|
||||
if (AIRTIME_CODE_VERSION > Application_Model_Preference::GetAirtimeVersion()) {
|
||||
// This line is actually fairly important (incidentally) because it
|
||||
// instantiates the logger singleton, which in turn decides the Airtime PHP error policy,
|
||||
// otherwise we would trip up on the '#' characters in airtime.conf
|
||||
Logging::info("Checking if upgrade is needed...");
|
||||
$upgradeManager = new UpgradeManager();
|
||||
$upgradeManager->runUpgrades(array(new AirtimeUpgrader252()), (__DIR__ . "/controllers"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue