Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 0 additions & 101 deletions mixin/polyfill.php

This file was deleted.

13 changes: 3 additions & 10 deletions moretokens.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ public static function findClass($suffix) {

use CRM_Moretokens_ExtensionUtil as E;

function _moretokens_civix_mixin_polyfill() {
if (!class_exists('CRM_Extension_MixInfo')) {
$polyfill = __DIR__ . '/mixin/polyfill.php';
(require $polyfill)(E::LONG_NAME, E::SHORT_NAME, E::path());
}
}

/**
* (Delegated) Implements hook_civicrm_config().
*
Expand All @@ -101,7 +94,7 @@ function _moretokens_civix_civicrm_config($config = NULL) {
$extRoot = __DIR__ . DIRECTORY_SEPARATOR;
$include_path = $extRoot . PATH_SEPARATOR . get_include_path();
set_include_path($include_path);
_moretokens_civix_mixin_polyfill();
// Based on <compatibility>, this does not currently require mixin/polyfill.php.
}

/**
Expand All @@ -111,7 +104,7 @@ function _moretokens_civix_civicrm_config($config = NULL) {
*/
function _moretokens_civix_civicrm_install() {
_moretokens_civix_civicrm_config();
_moretokens_civix_mixin_polyfill();
// Based on <compatibility>, this does not currently require mixin/polyfill.php.
}

/**
Expand All @@ -121,7 +114,7 @@ function _moretokens_civix_civicrm_install() {
*/
function _moretokens_civix_civicrm_enable(): void {
_moretokens_civix_civicrm_config();
_moretokens_civix_mixin_polyfill();
// Based on <compatibility>, this does not currently require mixin/polyfill.php.
}

/**
Expand Down