[Rejected] [Issue] Default theme template output in xmlhttp.php?action=get_buddyselect
#2
After digging around in xmlhttp.php i have made following edit (same code is used in global.php - beta 3)

xmlhttp.php line 79 - 89

from


// Load basic theme information that we could be needing.
if($loadstyle == "def='1'")
{
if(!$cache->read('default_theme'))
{
 $cache->update_default_theme();
 }
$theme = $cache->read('default_theme');
}
$theme = @array_merge($theme, my_unserialize($theme['properties']));

to
// Load basic theme information that we could be needing.
if($loadstyle == "def='1'")
{
	if(!$cache->read('default_theme'))
	{
		$cache->update_default_theme();
	}
	$theme = $cache->read('default_theme');
}
else 
{
	$query = $db->simple_select('themes', 'name, tid, properties, stylesheets', $loadstyle, array('limit' => 1));
	$theme = $db->fetch_array($query);
}

$theme = @array_merge($theme, unserialize($theme['properties']));
Reply


Messages In This Thread
RE: [Issue] Default theme template output in certain areas (xmlhttp_buddy) - by Johnny S - 2014-08-17, 06:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)