/**
*	Get the template from the template using the style and title
*
*	@param int styleid
* @param int title
* @return array template table record
*/
function fetch_template_by_title($styleid, $title)
{
	global $db;
	$qTitle = "'" . $db->escape_string($title) . "'";
	$filter = "styleid = " . intval($styleid) . " AND title = $qTitle AND templatetype='template'";
	return fetch_template_internal($filter);
}
/**
*	Get the template from the template using the style and title
*
*	@param 	int 	styleid
* 	@param  string	title
* 	@return array 	template table record
*/
function fetch_template_by_title($styleid, $title)
{
    $filter = array('styleid' => intval($styleid), 'title' => (string) $title, 'templatetype' => 'template');
    return fetch_template_internal($filter);
}