]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
get markup template
[friendica.git] / mod / profiles.php
index 216edacb59d27766bded73a4bd739fd5e3af8761..a535f2fc204b4b52e0da063f12e3b81a05db272f 100644 (file)
@@ -527,11 +527,11 @@ function profiles_content(App $a) {
                        return;
                }
 
-               $a->page['htmlhead'] .= Renderer::replaceMacros(get_markup_template('profed_head.tpl'), [
+               $a->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('profed_head.tpl'), [
                        '$baseurl' => System::baseUrl(true),
                ]);
 
-               $opt_tpl = get_markup_template("profile-hide-friends.tpl");
+               $opt_tpl = Renderer::getMarkupTemplate("profile-hide-friends.tpl");
                $hide_friends = Renderer::replaceMacros($opt_tpl,[
                        '$yesno' => [
                                'hide-friends', //Name
@@ -553,7 +553,7 @@ function profiles_content(App $a) {
                $detailled_profile = (PConfig::get(local_user(), 'system', 'detailled_profile') AND $personal_account);
 
                $is_default = (($r[0]['is-default']) ? 1 : 0);
-               $tpl = get_markup_template("profile_edit.tpl");
+               $tpl = Renderer::getMarkupTemplate("profile_edit.tpl");
                $o .= Renderer::replaceMacros($tpl, [
                        '$personal_account' => $personal_account,
                        '$detailled_profile' => $detailled_profile,
@@ -664,7 +664,7 @@ function profiles_content(App $a) {
 
                if (DBA::isResult($r)) {
 
-                       $tpl = get_markup_template('profile_entry.tpl');
+                       $tpl = Renderer::getMarkupTemplate('profile_entry.tpl');
 
                        $profiles = '';
                        foreach ($r as $rr) {
@@ -678,7 +678,7 @@ function profiles_content(App $a) {
                                ]);
                        }
 
-                       $tpl_header = get_markup_template('profile_listing_header.tpl');
+                       $tpl_header = Renderer::getMarkupTemplate('profile_listing_header.tpl');
                        $o .= Renderer::replaceMacros($tpl_header,[
                                '$header'      => L10n::t('Edit/Manage Profiles'),
                                '$chg_photo'   => L10n::t('Change profile photo'),