]> git.mxchange.org Git - friendica.git/blobdiff - mod/oexchange.php
Use short form array syntax everywhere
[friendica.git] / mod / oexchange.php
index 37dc76545f73522213c3483540840c1b748fe1f2..19617391dd6837fe072d68f9992e1667c8af964c 100644 (file)
@@ -9,7 +9,7 @@ function oexchange_init(App $a) {
        if (($a->argc > 1) && ($a->argv[1] === 'xrd')) {
                $tpl = get_markup_template('oexchange_xrd.tpl');
 
-               $o = replace_macros($tpl, array('$base' => System::baseUrl()));
+               $o = replace_macros($tpl, ['$base' => System::baseUrl()]);
                echo $o;
                killme();
        }
@@ -44,7 +44,7 @@ function oexchange_content(App $a) {
 
        require_once('include/html2bbcode.php');
 
-       $post = array();
+       $post = [];
 
        $post['profile_uid'] = local_user();
        $post['return'] = '/oexchange/done' ;