X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsuggest.php;h=7f1fe3386c139f297244f88f0ea45f2d23aba310;hb=89eaf508f19be57a07971c5f40b4bb538e36e891;hp=1e33cb66024e9d811a3711bb31ef12d2d7c758d0;hpb=2a881cc2e71b1677cc9ce98001ae3f157743e542;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index 1e33cb6602..7f1fe3386c 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; @@ -19,7 +20,7 @@ function suggest_init(App $a) return; } - if (x($_GET,'ignore') && intval($_GET['ignore'])) { + if (!empty($_GET['ignore'])) { // Check if we should do HTML-based delete confirmation if ($_REQUEST['confirm']) { //
can't take arguments in its "action" parameter @@ -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, @@ -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, ]);