Skip to content

Commit

Permalink
Use language string for Connect Error message. salesagility#12
Browse files Browse the repository at this point in the history
  • Loading branch information
chris001 authored Mar 22, 2017
1 parent 73ba465 commit 63ebc4e
Showing 1 changed file with 2 additions and 2 deletions.
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;
}

}
}

0 comments on commit 63ebc4e

Please sign in to comment.