replacePrefix not working properly in some cases
When using getTableStatus or getTableList it's failing to replace the prefix resulting in #__ instead of the prefix being sent with the query. This causes getTableStatus for example to return nothing. Confirmed by GJ 2.4 as it causes the check for GJ 1.8 database tables to always fail.
Updated by krileon almost 12 years ago
- File 3052.patch 3052.patch added
- File cb.database.php cb.database.php added
- Status changed from New to Resolved
- Assignee set to beat
- % Done changed from 0 to 100
This was only a problem when the beginning of $pattern started with #__, which is the case for getTableStatus. As there is nothing to lookbehind the regex fails. The proposed fix adds an OR case to see if the beginning of the string starts with #__ resolving the issue. Fix does not appear to have any adverse affects and confirmed it resolves GJs table check issue.