diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 04f292b16..e141781a8 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -970,6 +970,13 @@ class Get $component->whmcs_url = '#'; } } + // since the license details are not set clear + else + { + $component->whmcs_key = ''; + $component->whmcs_buy_link = ''; + $component->whmcs_url = ''; + } // set the footable switch if ($component->addfootable) diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index 8e0960f81..9bf70f36d 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -423,7 +423,7 @@ class Interpretation extends Fields $encrypt[] = "/**"; $encrypt[] = "* " . $this->setLine(__LINE__) . "WHMCS Class "; $encrypt[] = "**/"; - $encrypt[] = PHP_EOL . "class WHMCS"; + $encrypt[] = "class WHMCS"; $encrypt[] = "{"; $encrypt[] = $this->_t(1) . "public \$_key = false;"; $encrypt[] = $this->_t(1) . "public \$_is = false;"; @@ -584,7 +584,9 @@ class Interpretation extends Fields return implode(PHP_EOL, $encrypt); } } - return ''; + // give notice of this issue + $this->app->enqueueMessage(JText::sprintf('The WHMCS class could not be added to this component. You will need to enable the add-on in the Joomla Component area (Add WHMCS)->Yes.', $this->libraries[$id]->name), 'error'); + return "//" . $this->setLine(__LINE__) . " The WHMCS class could not be added to this component." . PHP_EOL . "//" . $this->setLine(__LINE__) . " Please note that you will need to enable the add-on in the Joomla Component area (Add WHMCS)->Yes."; } /**