Skip to content

Commit

Permalink
Merge pull request joomla#733 from realityking/nodb
Browse files Browse the repository at this point in the history
Fix error when no database is available.
  • Loading branch information
eddieajau committed Jan 10, 2012
2 parents 9bc51a4 + e6c0aed commit 75caa7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ protected static function createDbo()

if ($db->getErrorNum() > 0)
{
JError::raiseError(500, JText::sprintf('JLIB_UTIL_ERROR_CONNECT_DATABASE', $db->getErrorNum(), $db->getErrorMsg()));
die(sprintf('Database connection error (%d): %s', $db->getErrorNum(), $db->getErrorMsg()));
}

$db->setDebug($debug);
Expand Down

0 comments on commit 75caa7a

Please sign in to comment.