X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsuggest.php;h=ed9f6e0f2191ed8d40ca36ce725b5ce705ca2ec8;hb=b42760b0e6b243a9ab6306a1f1440e1a2effb74e;hp=81030842dcdf4dc220d05518e51a6fe2b157600f;hpb=61693419e8cf571a2ad26690423d356023badc2e;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index 81030842dc..ed9f6e0f21 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -7,6 +7,7 @@ use Friendica\App; use Friendica\Content\ContactSelector; use Friendica\Content\Widget; use Friendica\Core\L10n; +use Friendica\Core\Renderer; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Model\Contact; @@ -33,7 +34,7 @@ function suggest_init(App $a) } } - $a->page['content'] = replace_macros(get_markup_template('confirm.tpl'), [ + $a->page['content'] = Renderer::replaceMacros(Renderer::getMarkupTemplate('confirm.tpl'), [ '$method' => 'get', '$message' => L10n::t('Do you really want to delete this suggestion?'), '$extra_inputs' => $inputs, @@ -62,7 +63,7 @@ function suggest_content(App $a) return; } - $_SESSION['return_url'] = System::baseUrl() . '/' . $a->cmd; + $_SESSION['return_path'] = $a->cmd; $a->page['aside'] .= Widget::findPeople(); $a->page['aside'] .= Widget::follow(); @@ -111,9 +112,9 @@ function suggest_content(App $a) $entries[] = $entry; } - $tpl = get_markup_template('viewcontact_template.tpl'); + $tpl = Renderer::getMarkupTemplate('viewcontact_template.tpl'); - $o .= replace_macros($tpl,[ + $o .= Renderer::replaceMacros($tpl,[ '$title' => L10n::t('Friend Suggestions'), '$contacts' => $entries, ]);