Skip to content

Commit

Permalink
replace pseudo prefix for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis committed May 5, 2016
1 parent 507ce25 commit 1d5df70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/AbstractDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
abstract class AbstractDatabase extends AbstractHelper
{
protected $_pseudoPrefix = '#__';

/**
* @return string
*/
Expand Down Expand Up @@ -69,6 +71,9 @@ abstract public function insertId();
*/
protected function _prepareSql($sql)
{
return (string)$sql;
$sql = (string)$sql;
$sql = str_replace($this->_pseudoPrefix, $this->getPrefix(), $sql);

return $sql;
}
}

0 comments on commit 1d5df70

Please sign in to comment.