@ -175,7 +175,7 @@ function admin_content(App $a)
// apc_delete($toDelete);
//}
// Header stuff
$a -> page [ 'htmlhead' ] .= Renderer :: replaceMacros ( get_markup_t emplate( 'admin/settings_head.tpl' ), []);
$a -> page [ 'htmlhead' ] .= Renderer :: replaceMacros ( Renderer :: getMarkupT emplate( 'admin/settings_head.tpl' ), []);
/*
* Side bar links
@ -226,7 +226,7 @@ function admin_content(App $a)
$addons_admin [] = $addon ;
}
$t = get_markup_t emplate( 'admin/aside.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/aside.tpl' );
$a -> page [ 'aside' ] .= Renderer :: replaceMacros ( $t , [
'$admin' => $aside_tools ,
'$subpages' => $aside_sub ,
@ -314,7 +314,7 @@ function admin_content(App $a)
function admin_page_tos ( App $a )
{
$tos = new Tos ();
$t = get_markup_t emplate( 'admin/tos.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/tos.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Terms of Service' ),
@ -376,7 +376,7 @@ function admin_page_blocklist(App $a)
];
}
}
$t = get_markup_t emplate( 'admin/blocklist.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/blocklist.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Server Blocklist' ),
@ -491,7 +491,7 @@ function admin_page_contactblock(App $a)
$contacts = DBA :: toArray ( $statement );
$t = get_markup_t emplate( 'admin/contactblock.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/contactblock.tpl' );
$o = Renderer :: replaceMacros ( $t , [
// strings //
'$title' => L10n :: t ( 'Administration' ),
@ -533,7 +533,7 @@ function admin_page_contactblock(App $a)
*/
function admin_page_deleteitem ( App $a )
{
$t = get_markup_t emplate( 'admin/deleteitem.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/deleteitem.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
@ -726,7 +726,7 @@ function admin_page_federation(App $a)
$hint = L10n :: t ( 'The <em>Auto Discovered Contact Directory</em> feature is not enabled, it will improve the data displayed here.' );
// load the template, replace the macros and return the page content
$t = get_markup_t emplate( 'admin/federation.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/federation.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Federation Statistics' ),
@ -769,7 +769,7 @@ function admin_page_queue(App $a)
}
DBA :: close ( $entries );
$t = get_markup_t emplate( 'admin/queue.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/queue.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Inspect Queue' ),
@ -820,7 +820,7 @@ function admin_page_workerqueue(App $a, $deferred)
}
DBA :: close ( $entries );
$t = get_markup_t emplate( 'admin/workerqueue.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/workerqueue.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => $sub_title ,
@ -938,7 +938,7 @@ function admin_page_summary(App $a)
'memory_limit' => ini_get ( 'memory_limit' )],
'mysql' => [ 'max_allowed_packet' => $max_allowed_packet ]];
$t = get_markup_t emplate( 'admin/summary.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/summary.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Summary' ),
@ -1449,7 +1449,7 @@ function admin_page_site(App $a)
$optimize_max_tablesize = - 1 ;
}
$t = get_markup_t emplate( 'admin/site.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/site.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Site' ),
@ -1643,13 +1643,13 @@ function admin_page_dbsync(App $a)
}
if ( ! count ( $failed )) {
$o = Renderer :: replaceMacros ( get_markup_t emplate( 'structure_check.tpl' ), [
$o = Renderer :: replaceMacros ( Renderer :: getMarkupT emplate( 'structure_check.tpl' ), [
'$base' => System :: baseUrl ( true ),
'$banner' => L10n :: t ( 'No failed updates.' ),
'$check' => L10n :: t ( 'Check database structure' ),
]);
} else {
$o = Renderer :: replaceMacros ( get_markup_t emplate( 'failed_updates.tpl' ), [
$o = Renderer :: replaceMacros ( Renderer :: getMarkupT emplate( 'failed_updates.tpl' ), [
'$base' => System :: baseUrl ( true ),
'$banner' => L10n :: t ( 'Failed Updates' ),
'$desc' => L10n :: t ( 'This does not include updates prior to 1139, which did not return a status.' ),
@ -1910,7 +1910,7 @@ function admin_page_users(App $a)
$th_users = array_map ( null , [ L10n :: t ( 'Name' ), L10n :: t ( 'Email' ), L10n :: t ( 'Register date' ), L10n :: t ( 'Last login' ), L10n :: t ( 'Last item' ), L10n :: t ( 'Type' )], $valid_orders );
$t = get_markup_t emplate( 'admin/users.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/users.tpl' );
$o = Renderer :: replaceMacros ( $t , [
// strings //
'$title' => L10n :: t ( 'Administration' ),
@ -2026,7 +2026,7 @@ function admin_page_addons(App $a, array $addons_admin)
$func ( $a , $admin_form );
}
$t = get_markup_t emplate( 'admin/addon_details.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/addon_details.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
@ -2087,7 +2087,7 @@ function admin_page_addons(App $a, array $addons_admin)
}
}
$t = get_markup_t emplate( 'admin/addons.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/addons.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Addons' ),
@ -2297,7 +2297,7 @@ function admin_page_themes(App $a)
$screenshot = null ;
}
$t = get_markup_t emplate( 'admin/addon_details.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/addon_details.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Themes' ),
@ -2341,7 +2341,7 @@ function admin_page_themes(App $a)
$addons [] = [ $th [ 'name' ], (( $th [ 'allowed' ]) ? " on " : " off " ), Theme :: getInfo ( $th [ 'name' ])];
}
$t = get_markup_t emplate( 'admin/addons.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/addons.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
'$page' => L10n :: t ( 'Themes' ),
@ -2415,7 +2415,7 @@ function admin_page_logs(App $a)
$phplogenabled = L10n :: t ( 'PHP log currently disabled.' );
}
$t = get_markup_t emplate( 'admin/logs.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/logs.tpl' );
return Renderer :: replaceMacros ( $t , [
'$title' => L10n :: t ( 'Administration' ),
@ -2456,7 +2456,7 @@ function admin_page_logs(App $a)
*/
function admin_page_viewlogs ( App $a )
{
$t = get_markup_t emplate( 'admin/viewlogs.tpl' );
$t = Renderer :: getMarkupT emplate( 'admin/viewlogs.tpl' );
$f = Config :: get ( 'system' , 'logfile' );
$data = '' ;
@ -2562,7 +2562,7 @@ function admin_page_features(App $a)
}
}
$tpl = get_markup_t emplate( 'admin/settings_features.tpl' );
$tpl = Renderer :: getMarkupT emplate( 'admin/settings_features.tpl' );
$o = Renderer :: replaceMacros ( $tpl , [
'$form_security_token' => BaseModule :: getFormSecurityToken ( " admin_manage_features " ),
'$title' => L10n :: t ( 'Manage Additional Features' ),