Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
changing access to JDatabase::replacePrefix() back to public
Browse files Browse the repository at this point in the history
  • Loading branch information
elkuku committed Aug 10, 2011
1 parent 157c2e2 commit 6e1fbc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/joomla/database/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public static function getInstance($options = array())
if (JError::$legacy) {
// Deprecation warning.
JLog::add('JError() is deprecated.', JLog::WARNING, 'deprecated');

JError::setErrorHandling(E_ERROR, 'die');
return JError::raiseError(500, JText::sprintf('JLIB_DATABASE_ERROR_LOAD_DATABASE_DRIVER', $options['driver']));
}
Expand All @@ -319,7 +319,7 @@ public static function getInstance($options = array())
if (JError::$legacy) {
// Deprecation warning.
JLog::add('JError() is deprecated.', JLog::WARNING, 'deprecated');

JError::setErrorHandling(E_ERROR, 'ignore');
return JError::raiseError(500, JText::sprintf('JLIB_DATABASE_ERROR_CONNECT_DATABASE', $e->getMessage()));
}
Expand Down Expand Up @@ -1233,7 +1233,7 @@ public function quoteName($name)
*
* @since 11.1
*/
protected function replacePrefix($sql, $prefix = '#__')
public function replacePrefix($sql, $prefix = '#__')
{
// Initialize variables.
$escaped = false;
Expand Down

0 comments on commit 6e1fbc7

Please sign in to comment.