Skip to content

Commit

Permalink
Set 5.49 min
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Oct 22, 2022
1 parent e5cf70f commit b9b2629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 113 deletions.
14 changes: 2 additions & 12 deletions dummysms.civix.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CRM_Dummysms_ExtensionUtil {
* Translated text.
* @see ts
*/
public static function ts($text, $params = []): string {
public static function ts($text, $params = []) {
if (!array_key_exists('domain', $params)) {
$params['domain'] = [self::LONG_NAME, NULL];
}
Expand All @@ -41,7 +41,7 @@ public static function ts($text, $params = []): string {
* Ex: 'http://example.org/sites/default/ext/org.example.foo'.
* Ex: 'http://example.org/sites/default/ext/org.example.foo/css/foo.css'.
*/
public static function url($file = NULL): string {
public static function url($file = NULL) {
if ($file === NULL) {
return rtrim(CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME), '/');
}
Expand Down Expand Up @@ -79,13 +79,6 @@ public static function findClass($suffix) {

use CRM_Dummysms_ExtensionUtil as E;

function _dummysms_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 @@ -112,7 +105,6 @@ function _dummysms_civix_civicrm_config(&$config = NULL) {

$include_path = $extRoot . PATH_SEPARATOR . get_include_path();
set_include_path($include_path);
_dummysms_civix_mixin_polyfill();
}

/**
Expand All @@ -125,7 +117,6 @@ function _dummysms_civix_civicrm_install() {
if ($upgrader = _dummysms_civix_upgrader()) {
$upgrader->onInstall();
}
_dummysms_civix_mixin_polyfill();
}

/**
Expand Down Expand Up @@ -166,7 +157,6 @@ function _dummysms_civix_civicrm_enable() {
$upgrader->onEnable();
}
}
_dummysms_civix_mixin_polyfill();
}

/**
Expand Down
101 changes: 0 additions & 101 deletions mixin/polyfill.php

This file was deleted.

0 comments on commit b9b2629

Please sign in to comment.