## Installation
-Pre-requisite: Register a username at geonames.org and set in config/addon.ini.php
+Pre-requisite: Register a username at geonames.org and set in `config/addon.config.php`
- [geonames]
- username = your_username
+ 'geonames' => [
+ 'username' => 'your_username'
+ ],
Also visit http://geonames.org/manageaccount and enable access to the free web services.
\ No newline at end of file
--- /dev/null
+<?php
+
+// Warning: Don't change this file! It only holds the default config values for this addon.
+// Instead overwrite these config values in config/addon.config.php in your Friendica directory
+
+return [
+ 'geonames' => [
+ //username (String)
+ //The geonames.org API username
+ 'username' => '',
+ ],
+];
+++ /dev/null
-<?php return <<<INI
-
-; Warning: Don't change this file! It only holds the default config values for this addon.
-; Instead overwrite these config values in config/addon.ini.php in your Friendica directory
-
-[geonames]
-; username (String)
-; The geonames.org API username
-username =
-
-INI;
-//Keep this line
\ No newline at end of file
*
*
* Pre-requisite: Register a username at geonames.org
- * and set in config/addon.ini.php
+ * and set in config/addon.config.php
*
* [geonames]
* username = your_username
function geonames_load_config(\Friendica\App $a)
{
- $a->loadConfigFile(__DIR__. '/config/geonames.ini.php');
+ $a->loadConfigFile(__DIR__. '/config/geonames.config.php');
}
function geonames_post_hook($a, &$item) {