rukykf / btcpay

CiviCRM extension for collecting cryptocurrency payments by integrating with a self-hosted BTCPay server
GNU Affero General Public License v3.0
2 stars 3 forks source link

info.xml: require CiviCRM 5.32 or later #2

Closed mlutfy closed 3 years ago

mlutfy commented 3 years ago

This kind of syntax requires CiviCRM 5.32 or later:

      Civi::resources()->add(
        [
          'template' => 'Btcpaycontribution-thankyou-billing-block.tpl',
          'region' => 'form-top',
        ]
      );

The old syntax was:

      CRM_Core_Region::instance('form-top')->add([
        'template' => 'Btcpaycontribution-thankyou-billing-block.tpl',
      ]);

Considering that CiviCRM ESR is 5.33, and later versions of CiviCRM are unsupported, I think it's better to keep the code clean, and bump the minimum required version of CiviCRM.