Skip to content

Commit

Permalink
Merge pull request #17 from zero-24/patch-8
Browse files Browse the repository at this point in the history
CS
  • Loading branch information
alikon committed Aug 20, 2015
2 parents 2fe2f28 + e3afb10 commit 7815088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions administrator/components/com_config/model/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,18 @@ public function save($data)
'database' => $data['db'],
'prefix' => $data['dbprefix']
);

try
{
$dbc = JDatabaseDriver::getInstance($options)->getVersion();
}
catch (Exception $e)
{
$app->enqueueMessage(JText::_('JLIB_DATABASE_ERROR_DATABASE_CONNECT'), 'error');

return false;
}

// Save the rules
if (isset($data['rules']))
{
Expand Down

0 comments on commit 7815088

Please sign in to comment.