X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Feditpost.php;h=9e3401e958a7d7e6e19d11d28e7ba071525549a6;hb=391c5913227c7f62f19b4f08906b0b1b0b618b33;hp=a9cdfe9bbbd262018d4a35edba7c52c49e714dbc;hpb=3bb53967f4f0bd82210197717a1bed2e79db118b;p=friendica.git diff --git a/mod/editpost.php b/mod/editpost.php index a9cdfe9bbb..9e3401e958 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -4,6 +4,7 @@ */ use Friendica\App; use Friendica\Content\Feature; +use Friendica\Core\Addon; use Friendica\Core\Config; use Friendica\Core\System; use Friendica\Database\DBM; @@ -36,25 +37,25 @@ function editpost_content(App $a) { return; } - $o .= replace_macros(get_markup_template("section_title.tpl"),array( + $o .= replace_macros(get_markup_template("section_title.tpl"),[ '$title' => t('Edit post') - )); + ]); $tpl = get_markup_template('jot-header.tpl'); - $a->page['htmlhead'] .= replace_macros($tpl, array( + $a->page['htmlhead'] .= replace_macros($tpl, [ '$baseurl' => System::baseUrl(), '$ispublic' => ' ', // t('Visible to everybody'), '$geotag' => $geotag, '$nickname' => $a->user['nickname'] - )); + ]); $tpl = get_markup_template('jot-end.tpl'); - $a->page['end'] .= replace_macros($tpl, array( + $a->page['end'] .= replace_macros($tpl, [ '$baseurl' => System::baseUrl(), '$ispublic' => ' ', // t('Visible to everybody'), '$geotag' => $geotag, '$nickname' => $a->user['nickname'] - )); + ]); $tpl = get_markup_template("jot.tpl"); @@ -94,13 +95,13 @@ function editpost_content(App $a) { - call_hooks('jot_tool', $jotplugins); - //call_hooks('jot_networks', $jotnets); + Addon::callHooks('jot_tool', $jotplugins); + //Addon::callHooks('jot_networks', $jotnets); //$tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins)); - $o .= replace_macros($tpl,array( + $o .= replace_macros($tpl,[ '$is_edit' => true, '$return_path' => $_SESSION['return_url'], '$action' => 'item', @@ -150,7 +151,7 @@ function editpost_content(App $a) { '$message' => t('Message'), '$browser' => t('Browser'), '$shortpermset' => t('permissions'), - )); + ]); return $o;