PHP:
/**
* Goes to the data source to load the list of templates.
*
* @param array Template list
*
* @return array Key-value pairs of template titles/compiled templates
*/
protected function _getTemplatesFromDataSource(array $templateList)
{
XenForo_CodeEvent::fire('template_pre_fetch', array(&$templateList, $this));
$db = XenForo_Application::getDb();
return $db->fetchPairs('
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN (' . $db->quote($templateList) . ')
AND style_id = ?
AND language_id = ?
', array(self::$_styleId, self::$_languageId));
}
Upvote
0