WHMCS fix #316

Merged
Llewellyn merged 4 commits from staging into master 2018-07-09 13:18:36 +00:00
2 changed files with 11 additions and 2 deletions
Showing only changes of commit 2cf6f6ab11 - Show all commits

View File

@ -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)

View File

@ -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 <b>WHMCS class</b> 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.";
}
/**