MyBB Community Forums

Full Version: IF YOU DOWNLOADED MyBB 1.4.10 BEFORE 12/7/09
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Due to a regression introduced by a change between MyBB 1.4.9 and MyBB 1.4.10 if you downloaded the MyBB 1.4.10 package or update before December 7th, 2009, we are releasing a patch to fix this issue.

Open /admin/modules/style/templates.php and find near line 531:

// Only allow users to move non-default templates to stop them from being able to delete it!
if($template['sid'] == "-2")
{
	echo $form->generate_hidden_field("sid", "-2");
}
else
{
	$form_container->output_row($lang->template_set, $lang->template_set_desc, $form->generate_select_box('sid', $template_sets, $sid));
}

and replace with:

// Force users to save the default template to a specific set, rather than the "global" templates - where they can delete it
if($template['sid'] == "-2")
{
	unset($template_sets[-1]);
}

$form_container->output_row($lang->template_set, $lang->template_set_desc, $form->generate_select_box('sid', $template_sets, $sid));

We apologize for this inconvenience!

Thank you,

Ryan Gordon
MyBB Group
Lead Developer