This hack seems to work correctly on vB 3.5.2 - the only (quite big) error I'm getting is that it can't find the table with the templates, which is correct because it's ignoring my prefix.
Does anyone know a way to solve this?
Edit:
Got it.
In line 1834 replace
Code:
$sql = 'SELECT title, template_un FROM template
with
Code:
$sql = 'SELECT title, template_un FROM " . TABLE_PREFIX . "template
Except for that place everywhere it's checked if you're using a prefix