Added notice to the compiler when the WHMCS class could not be added to explain why.

This commit is contained in:
Llewellyn van der Merwe 2018-07-09 01:17:04 +02:00
parent 21254738a8
commit 2cf6f6ab11
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
2 changed files with 11 additions and 2 deletions

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.";
}
/**