Updated upgrade functions to have a directory parameter, since __DIR__
This commit is contained in:
parent
0a0c6911f8
commit
28d2bdbbec
2 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue