theme infos are now bundled in a single array

This commit is contained in:
Michael 2021-07-25 19:07:03 +00:00
commit c52b8595e8
9 changed files with 22 additions and 21 deletions

View file

@ -255,7 +255,7 @@ function events_content(App $a)
);
}
if ($a->theme_events_in_profile) {
if ($a->theme_info['events_in_profile']) {
Nav::setSelected('home');
} else {
Nav::setSelected('events');
@ -279,7 +279,7 @@ function events_content(App $a)
$o = '';
$tabs = '';
// tabs
if ($a->theme_events_in_profile) {
if ($a->theme_info['events_in_profile']) {
$tabs = BaseProfile::getTabsHTML($a, 'events', true, $a->user);
}