mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #20732
[Bug 1372188] Re: upgrade problem with having the settings array
** Changed in: mahara
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1372188
Title:
upgrade problem with having the settings array
Status in Mahara ePortfolio:
Fix Committed
Bug description:
Now that we have a 'settings' array in check_upgrades() (see Bug
1367998) it can never return false so if we do something like
if ($data = check_upgrades('blocktype.text')) {
upgrade_plugin($data);
}
it will fail if it's already installed as it returns the 'settings'
array
So we need to add to the upgrade_plugin() function a check to see if
$upgrade->name has been passed otherwise bail out
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1372188/+subscriptions
References