]> git.mxchange.org Git - friendica.git/blobdiff - mod/editpost.php
Add pwdreset_time field to user table
[friendica.git] / mod / editpost.php
index a9cdfe9bbbd262018d4a35edba7c52c49e714dbc..9e3401e958a7d7e6e19d11d28e7ba071525549a6 100644 (file)
@@ -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' => '&nbsp;', // t('Visible to <strong>everybody</strong>'),
                '$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' => '&nbsp;', // t('Visible to <strong>everybody</strong>'),
                '$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;