mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #20725
[Bug 1372188] Re: upgrade problem with having the settings array
** Tags added: regression
** Description changed:
- Now that we have a 'settings' array in check_upgrades() it can never
- return false so if we do something like
+ 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);
- }
+ 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
--
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:
In Progress
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