private static function add_theme()
{
// get the active theme
$theme = Themes::get_active_data(true);
// name and version are required in the XML file, make sure GUID is set
if (isset($theme['info']->guid)) {
Update::add($theme['info']->name, $theme['info']->guid, $theme['info']->version);
}
}