From: Hypolite Petovan Date: Sun, 25 Nov 2018 07:11:53 +0000 (-0500) Subject: [geonames] Update config file style/name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b87b840db58167baa1431673116c64a064be169e;p=friendica-addons.git [geonames] Update config file style/name --- diff --git a/geonames/README.md b/geonames/README.md index ba90dc5d..443ddf3f 100644 --- a/geonames/README.md +++ b/geonames/README.md @@ -7,9 +7,10 @@ Use Geonames service to resolve nearest populated location for given latitude, l ## 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 diff --git a/geonames/config/geonames.config.php b/geonames/config/geonames.config.php new file mode 100644 index 00000000..6af3634e --- /dev/null +++ b/geonames/config/geonames.config.php @@ -0,0 +1,12 @@ + [ + //username (String) + //The geonames.org API username + 'username' => '', + ], +]; diff --git a/geonames/config/geonames.ini.php b/geonames/config/geonames.ini.php deleted file mode 100644 index 280e7a93..00000000 --- a/geonames/config/geonames.ini.php +++ /dev/null @@ -1,12 +0,0 @@ -loadConfigFile(__DIR__. '/config/geonames.ini.php'); + $a->loadConfigFile(__DIR__. '/config/geonames.config.php'); } function geonames_post_hook($a, &$item) {