Vergleich inc/class_templates.php - 1.8.17 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 46Zeile 46
			$sql .= " ,'".trim($title)."'";
}


			$sql .= " ,'".trim($title)."'";
}


		$query = $db->simple_select("templates", "title,template", "title IN (''$sql) AND sid IN ('-2','-1','".$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'asc'));

		$query = $db->simple_select("templates", "title,template", "title IN (''$sql) AND sid IN ('-2','-1','".(int)$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'asc'));

		while($template = $db->fetch_array($query))
{
$this->cache[$template['title']] = $template['template'];

		while($template = $db->fetch_array($query))
{
$this->cache[$template['title']] = $template['template'];

Zeile 86Zeile 86
			}
else
{

			}
else
{

				$query = $db->simple_select("templates", "template", "title='".$db->escape_string($title)."' AND sid IN ('-2','-1','".$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));

				$query = $db->simple_select("templates", "template", "title='".$db->escape_string($title)."' AND sid IN ('-2','-1','".(int)$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));

			}

$gettemplate = $db->fetch_array($query);

			}

$gettemplate = $db->fetch_array($query);

Zeile 95Zeile 95
				$this->uncached_templates[$title] = $title;
}


				$this->uncached_templates[$title] = $title;
}


			if(!$gettemplate)

			if(empty($gettemplate))

			{

			{

				$gettemplate['template'] = "";

				$gettemplate = array('template' => '');

			}

$this->cache[$title] = $gettemplate['template'];
}
$template = $this->cache[$title];


			}

$this->cache[$title] = $gettemplate['template'];
}
$template = $this->cache[$title];


		if($htmlcomments)

		if($htmlcomments && $template !== false)

		{
if($mybb->settings['tplhtmlcomments'] == 1)
{

		{
if($mybb->settings['tplhtmlcomments'] == 1)
{