Skip to content

Commit

Permalink
Fixed absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Sep 2, 2019
1 parent 8b74be9 commit 9712e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Controller/JsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function generateCountryCodeAction($formName)
$country = ArrayHelper::getValue('country', $ip->getIpDetails());
$countryCode = array_search(strtolower($country), array_map('strtolower', $countries)); ## easy version
$realFormName = ltrim($formName, '_');
$utilsUrl = $this->assetsHelper->getUrl('plugins/MauticInternationalPhoneInputBundle/Assets/js/utils.js');
$utilsUrl = $this->assetsHelper->getUrl('plugins/MauticInternationalPhoneInputBundle/Assets/js/utils.js', null, null, true
);
$js = <<<JS
if(!window.{$formName}){
var elems = document.getElementsByClassName('inttel{$formName}');
Expand Down

0 comments on commit 9712e57

Please sign in to comment.