Skip to content

Commit

Permalink
Update application.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Aug 20, 2015
1 parent 2fe2f28 commit e3afb10
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 e3afb10

Please sign in to comment.