diff --git a/language/en-GB/en-GB.com_advancedopenportal.ini b/language/en-GB/en-GB.com_advancedopenportal.ini index 443d3f6..09b2d2d 100755 --- a/language/en-GB/en-GB.com_advancedopenportal.ini +++ b/language/en-GB/en-GB.com_advancedopenportal.ini @@ -32,4 +32,5 @@ COM_ADVANCEDOPENPORTAL_CASE_CREATED_BY='Raised by' COM_ADVANCEDOPENPORTAL_RAISED='Raised by' COM_ADVANCEDOPENPORTAL_RAISED_ON='on' COM_ADVANCEDOPENPORTAL_OWN_CASES='My cases' -COM_ADVANCEDOPENPORTAL_SEARCH='Search' \ No newline at end of file +COM_ADVANCEDOPENPORTAL_SEARCH='Search' +COM_ADVANCEDOPENPORTAL_ERROR_CONNECT="Failed to connect to SuiteCRM. Please check Settings in Joomla Admin, Components, Advanced Open Portal." diff --git a/site/models/SugarCasesConnection.php b/site/models/SugarCasesConnection.php index deea130..9e60d3e 100755 --- a/site/models/SugarCasesConnection.php +++ b/site/models/SugarCasesConnection.php @@ -42,7 +42,7 @@ public function __construct() { $this->cache = & JFactory::getCache(); $this->cache->setCaching( 1 ); if(!$this->restClient->login()){ - throw new Exception("Failed to connect to sugar. Please check your settings."); + throw new Exception(JText::_('COM_ADVANCEDOPENPORTAL_ERROR_CONNECT')); } } @@ -308,4 +308,4 @@ public function updateOrCreateContact($sugarId,$user){ return $res; } -} \ No newline at end of file +}