a few small fixes

This commit is contained in:
Marc Michalsky forumZFD 2020-12-10 15:28:45 +01:00
parent 4921345b88
commit 93d4f46df6
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
3 changed files with 5 additions and 9 deletions

View file

@ -22,7 +22,7 @@ class CRM_TwingleCampaign_Upgrader extends CRM_TwingleCampaign_Upgrader_Base {
// Create campaign types, custom fields and custom groups by the contents
// of the json file "campaigns.json"
$campaign_info = ExtensionCache::getInstance()->getCampaigns();
$campaign_info = Cache::getInstance()->getCampaigns();
// Create campaign types
foreach ($campaign_info['campaign_types'] as $campaign_type) {
@ -56,7 +56,7 @@ class CRM_TwingleCampaign_Upgrader extends CRM_TwingleCampaign_Upgrader_Base {
*/
public function uninstall() {
$campaign_info = ExtensionCache::getInstance()->getCampaigns();
$campaign_info = Cache::getInstance()->getCampaigns();
// Delete campaign types
foreach ($campaign_info['campaign_types'] as $campaign_type) {