]> git.mxchange.org Git - friendica-addons.git/blobdiff - geocoordinates/geocoordinates.php
Use short form array syntax everywhere
[friendica-addons.git] / geocoordinates / geocoordinates.php
index 69b73f726699075989531861bf7b11e40b1c8a5b..0171f7c29390438dfc065549973831c1d7239d8e 100644 (file)
@@ -86,11 +86,11 @@ function geocoordinates_plugin_admin(&$a, &$o)
 
        $t = get_markup_template("admin.tpl", "addon/geocoordinates/");
 
-       $o = replace_macros($t, array(
+       $o = replace_macros($t, [
                '$submit' => t('Save Settings'),
-               '$api_key' => array('api_key', t('API Key'),  Config::get('geocoordinates', 'api_key' ), ''),
-               '$language' => array('language', t('Language code (IETF format)'),  Config::get('geocoordinates', 'language' ), ''),
-       ));
+               '$api_key' => ['api_key', t('API Key'),  Config::get('geocoordinates', 'api_key' ), ''],
+               '$language' => ['language', t('Language code (IETF format)'),  Config::get('geocoordinates', 'language' ), ''],
+       ]);
 }
 
 function geocoordinates_plugin_admin_post(&$a)