A quick question: in all versions up to and including J3.10 the JDatabase::quoteName() function did table prefix replacement: $db->quoteName('#_my_table') would yield something like q78ty_my_table.
This appears not to be the case in 4.x unless I'm doing something really stupid.
Is it now necessary to use replacePrefix() for this?
e.g. the previously relatively readablenow becomes
This appears not to be the case in 4.x unless I'm doing something really stupid.
Is it now necessary to use replacePrefix() for this?
e.g. the previously relatively readable
Code:
$query->leftJoin($db->quoteName('#__users', 'u') . ' ON u.id = g.owner_id');
Code:
$query->leftJoin($db->quoteName($db->replacePrefix('#__users'), 'u') . ' ON u.id = g.owner_id');
Statistics: Posted by david0058 — Fri Dec 20, 2024 6:04 pm