Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add language string for Failed to Connect error. Fixes #12. #24

Open
wants to merge 3 commits into
base: hotfix
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion language/en-GB/en-GB.com_advancedopenportal.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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'
COM_ADVANCEDOPENPORTAL_SEARCH='Search'
COM_ADVANCEDOPENPORTAL_ERROR_CONNECT="Failed to connect to SuiteCRM. Please check Settings in Joomla Admin, Components, Advanced Open Portal."
4 changes: 2 additions & 2 deletions site/models/SugarCasesConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}

Expand Down Expand Up @@ -308,4 +308,4 @@ public function updateOrCreateContact($sugarId,$user){
return $res;
}

}
}