fix tabs in notifications

This commit is contained in:
Fabio Comuni 2011-10-17 16:54:21 +02:00
parent de44072172
commit a2dc8bad2e
1 changed files with 5 additions and 7 deletions

View File

@ -88,10 +88,8 @@ function notifications_content(&$a) {
'sel'=> '',
),
);
$tpl = get_markup_template('common_tabs.tpl');
$tab_content = replace_macros($tpl, array('$tabs'=>$tabs));
$o = "";
if( (($a->argc > 1) && ($a->argv[1] == 'intros')) || (($a->argc == 1))) {
@ -197,7 +195,7 @@ function notifications_content(&$a) {
$o .= replace_macros($notif_tpl,array(
'$notif_header' => t('Notifications'),
'$tabs' => $tab_content,
'$tabs' => $tabs,
'$notif_content' => $notif_content,
'$activetab' => 'intros'
));
@ -284,7 +282,7 @@ function notifications_content(&$a) {
$o .= replace_macros($notif_tpl,array(
'$notif_header' => t('Notifications'),
'$tabs' => $tab_content,
'$tabs' => $tabs,
'$notif_content' => $notif_content,
'$activetab' => 'network'
));
@ -361,7 +359,7 @@ function notifications_content(&$a) {
$o .= replace_macros($notif_tpl,array(
'$notif_header' => t('Notifications'),
'$tabs' => $tab_content,
'$tabs' => $tabs,
'$notif_content' => $notif_content,
'$activetab' => 'home'
));