simplify by making Smarty include directives behave like Friendica native ones
This commit is contained in:
+1
-6
@@ -61,12 +61,7 @@ function notify_content(&$a) {
|
||||
$notif_content .= t('No more system notifications.');
|
||||
}
|
||||
|
||||
$includes = array(
|
||||
'$common_tabs' => 'common_tabs.tpl',
|
||||
);
|
||||
$includes = set_template_includes($a->theme['template_engine'], $includes);
|
||||
|
||||
$o .= replace_macros($notif_tpl,$includes + array(
|
||||
$o .= replace_macros($notif_tpl, array(
|
||||
'$notif_header' => t('System Notifications'),
|
||||
'$tabs_data' => '', // $tabs,
|
||||
'$notif_content' => $notif_content,
|
||||
|
||||
Reference in New Issue
Block a user