diff --git a/gravatar/README.md b/gravatar/README.md
index 1a71a4d34..a1c25a2aa 100644
--- a/gravatar/README.md
+++ b/gravatar/README.md
@@ -30,12 +30,13 @@ Gravatar lets users self-rate their images to be used at appropriate audiences.
See more information at [Gravatar][1].
## Alternative Configuration
-Open the `config/local.config.php` file and add "gravatar" to the list of activated addons:
+Open the `config/node.config.php` file and add "gravatar" to the list of activated addons:
- 'system' => [
- ...
- 'addon' => '...,gravatar'
+ 'addons' => [
...
+ 'gravatar' => [
+ admin => true,
+ ],
]
You can add two configuration variables for the addon to the `config/gravatar.config.php` file:
diff --git a/gravatar/gravatar.php b/gravatar/gravatar.php
index 25d342a7c..c026d8637 100644
--- a/gravatar/gravatar.php
+++ b/gravatar/gravatar.php
@@ -93,7 +93,7 @@ function gravatar_addon_admin (App $a, string &$o)
];
// Check if Libravatar is enabled and show warning
- if (DBA::exists('addon', ['name' => 'libravatar', 'installed' => true])) {
+ if (!empty(DI::config()->get('addons', 'libravatar'))) {
$o = '
' .DI::l10n()->t('Information') .'
' .DI::l10n()->t('Libravatar addon is installed, too. Please disable Libravatar addon or this Gravatar addon.
The Libravatar addon will fall back to Gravatar if nothing was found at Libravatar.') .'
';
}
diff --git a/libravatar/README.md b/libravatar/README.md
index fc06feabc..4d5d4c309 100644
--- a/libravatar/README.md
+++ b/libravatar/README.md
@@ -23,13 +23,14 @@ If no avatar was found for an email Libravatar can create some pseudo-random gen
See examples at [Libravatar][1].
## Alternative Configuration
-Open the `config/local.config.php` file and add "libravatar" to the list of activated addons:
+Open the `config/node.config.php` file and add "libravatar" to the list of activated addons:
- 'system' => [
- ...
- 'addon' => '...,libravatar'
- ...
- ]
+ 'addons' => [
+ ...
+ 'libravatar' => [
+ admin => true,
+ ],
+ ]
You can add one configuration variables for the addon to the `config/libravatar.config.php` file:
diff --git a/mathjax/README.md b/mathjax/README.md
index e907fadfc..d67805e83 100644
--- a/mathjax/README.md
+++ b/mathjax/README.md
@@ -21,13 +21,14 @@ In case you want to use the CDN you can try the following URL as a quick start
http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML
In case you don't want or can use the admin panel of Friendica you can activate
-the addon by adding _mathjax_ to the list in your `config/local.config.php` file
+the addon by adding _mathjax_ to the list in your `config/node.config.php` file
- 'system' => [
- ...
- 'addon' => '...,mathjax'
- ...
- ]
+ 'addons' => [
+ ...
+ 'mathjax' => [
+ admin => true,
+ ],
+ ]
and then providing the base URL after that in the `config/mathjax.config.php` file
diff --git a/openstreetmap/README.md b/openstreetmap/README.md
index 78c748004..782389f5b 100644
--- a/openstreetmap/README.md
+++ b/openstreetmap/README.md
@@ -34,13 +34,14 @@ zoom level available.
## Alternative Configuration
-Open the `config/local.config.php` file and add "openstreetmap" to the list of activated addons.
+Open the `config/node.config.php` file and add "openstreetmap" to the list of activated addons.
- 'system' => [
- ...
- 'addon' => '...,openstreetmap'
- ...
- ]
+ 'addons' => [
+ ...
+ 'openstreetmap' => [
+ admin => true,
+ ],
+ ]
You can set configuration variables for the addon in the `config/openstreetmap.config.php` file:
diff --git a/piwik/README.md b/piwik/README.md
index c336fc79c..59cf5771f 100644
--- a/piwik/README.md
+++ b/piwik/README.md
@@ -22,13 +22,14 @@ The easiest way to configure this addon is by activating the admin panels of you
If you don't want to use the admin panel, you can configure the addon through the `config/local.config.php` file.
-Open the `config/local.config.php` file and add "piwik" to the list of activated addons.
+Open the `config/node.config.php` file and add "piwik" to the list of activated addons.
- 'system' => [
- ...
- 'addon' => '...,piwik'
- ...
- ]
+ 'addons' => [
+ ...
+ 'piwik' => [
+ admin => true,
+ ],
+ ]
You can change 4 more configuration variables for the addon in the `config/piwik.config.php` file:
diff --git a/twitter/README.md b/twitter/README.md
index 2efdddcad..7e0fabc51 100644
--- a/twitter/README.md
+++ b/twitter/README.md
@@ -18,11 +18,12 @@ After the registration please enter the values for "Consumer Key" and "Consumer
Open the `config/local.config.php` file and add "twitter" to the list of activated addons:
- 'system' => [
- ...
- 'addon' => '...,twitter'
- ...
- ]
+ 'addons' => [
+ ...
+ 'twitter' => [
+ admin => true,
+ ],
+ ]
Add your key pair to your `config/twitter.config.php` file.