Skip to content

Commit

Permalink
Handle database prefix in replaceWithRowData
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Apr 13, 2018
1 parent 6097de2 commit 335ae19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/com_fabrik/models/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -9219,6 +9219,10 @@ private function replaceWithRowData($matches)
return $match;
}

$config = JFactory::getConfig();
$prefix = $config->get('dbprefix');
$match = str_replace('#__', $prefix, $match);

/* strip the {} */
$match = JString::substr($match, 1, JString::strlen($match) - 2);

Expand Down

0 comments on commit 335ae19

Please sign in to comment.