Updated upgrade functions to have a directory parameter, since __DIR__

This commit is contained in:
Duncan Sommerville 2014-09-19 12:58:31 -04:00
parent 0a0c6911f8
commit 28d2bdbbec
2 changed files with 5 additions and 6 deletions

View file

@ -26,7 +26,8 @@ class UpgradeController extends Zend_Controller_Action
$upgrader = $upgraders[$i];
if ($upgrader->checkIfUpgradeSupported())
{
$upgrader->upgrade(); //This will throw an exception if the upgrade fails.
// pass __DIR__ to the upgrades, since __DIR__ returns parent dir of file, not executor
$upgrader->upgrade(__DIR__); //This will throw an exception if the upgrade fails.
$didWePerformAnUpgrade = true;
$this->getResponse()
->setHttpResponseCode(200)