Vergleich admin/inc/functions_themes.php - 1.6.12 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 358Zeile 358
	if(!$stylesheet['cachefile'] && $stylesheet['name'])
{
$stylesheet['cachefile'] = $stylesheet['name'];

	if(!$stylesheet['cachefile'] && $stylesheet['name'])
{
$stylesheet['cachefile'] = $stylesheet['name'];

		$db->update_query("themestylesheets", array('cachefile' => $db->escape_string($stylesheet['name'])), "sid='{$stylesheet['sid']}'", 1);

		$db->update_query("themestylesheets", array('cachefile' => $db->escape_string($stylesheet['name'])), "sid='{$stylesheet['sid']}'");

	}

// Still don't have the cache file name or is it not a flat file? Return false

	}

// Still don't have the cache file name or is it not a flat file? Return false

Zeile 371Zeile 371
	{
if(cache_stylesheet($stylesheet['tid'], $stylesheet['cachefile'], $stylesheet['stylesheet']) !== false)
{

	{
if(cache_stylesheet($stylesheet['tid'], $stylesheet['cachefile'], $stylesheet['stylesheet']) !== false)
{

			$db->update_query("themestylesheets", array('cachefile' => $db->escape_string($stylesheet['name'])), "sid='{$stylesheet['sid']}'", 1);

			$db->update_query("themestylesheets", array('cachefile' => $db->escape_string($stylesheet['name'])), "sid='{$stylesheet['sid']}'");


update_theme_stylesheet_list($stylesheet['tid']);

if($stylesheet['sid'] != 1)
{


update_theme_stylesheet_list($stylesheet['tid']);

if($stylesheet['sid'] != 1)
{

				$db->update_query("themestylesheets", array('lastmodified' => TIME_NOW), "sid='{$stylesheet['sid']}'", 1);

				$db->update_query("themestylesheets", array('lastmodified' => TIME_NOW), "sid='{$stylesheet['sid']}'");

			}
}


			}
}


Zeile 765Zeile 765
	$stylesheet['tid'] = $tid;
unset($stylesheet['sid']);


	$stylesheet['tid'] = $tid;
unset($stylesheet['sid']);


 
	$new_stylesheet = array();

	foreach($stylesheet as $key => $value)
{

	foreach($stylesheet as $key => $value)
{

		$stylesheet[$db->escape_string($key)] = $db->escape_string($value);




		if(!is_numeric($key))
{
$new_stylesheet[$db->escape_string($key)] = $db->escape_string($value);
}

	}


	}


	$sid = $db->insert_query("themestylesheets", $stylesheet);

	$sid = $db->insert_query("themestylesheets", $new_stylesheet);


return $sid;
}


return $sid;
}