[libravatar] Update config file style/name
parent
f0fc02e544
commit
aa97060491
|
@ -23,14 +23,18 @@ If no avatar was found for an email Libravatar can create some pseudo-random gen
|
||||||
See examples at [Libravatar][1].
|
See examples at [Libravatar][1].
|
||||||
|
|
||||||
## Alternative Configuration
|
## Alternative Configuration
|
||||||
Open the config/local.ini.php file and add "libravatar" to the list of activated addons:
|
Open the `config/local.config.php` file and add "libravatar" to the list of activated addons:
|
||||||
|
|
||||||
[system]
|
'system' => [
|
||||||
addon = ...,libravatar
|
...
|
||||||
|
'addon' => '...,libravatar'
|
||||||
|
...
|
||||||
|
]
|
||||||
|
|
||||||
You can add one configuration variables for the addon to the config/addon.ini.php file:
|
You can add one configuration variables for the addon to the `config/addon.config.php` file:
|
||||||
|
|
||||||
[libravatar]
|
'libravatar' => [
|
||||||
default_avatar = identicon
|
'default_avatar' => 'identicon',
|
||||||
|
],
|
||||||
|
|
||||||
[1]: http://wiki.libravatar.org/api/ "See API documentation at Libravatar for more information"
|
[1]: http://wiki.libravatar.org/api/ "See API documentation at Libravatar for more information"
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?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 [
|
||||||
|
'libravatar' => [
|
||||||
|
// default_avatar (String)
|
||||||
|
// If no avatar was found for an email Gravatar can create some pseudo-random generated avatars based on an email hash.
|
||||||
|
// You can choose between these presets:
|
||||||
|
// - mm : (mystery-man) a static image
|
||||||
|
// - identicon: a generated geometric pattern based on email hash
|
||||||
|
// - monsterid: a generated 'monster' with different colors, faces, etc. based on email hash
|
||||||
|
// - wavatar : faces with different features and backgrounds based on email hash
|
||||||
|
// - retro : 8-bit arcade-styled pixelated faces based on email hash
|
||||||
|
'default_avatar' => 'identicon',
|
||||||
|
],
|
||||||
|
];
|
|
@ -1,18 +0,0 @@
|
||||||
<?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
|
|
||||||
|
|
||||||
[libravatar]
|
|
||||||
; default_avatar (String)
|
|
||||||
; If no avatar was found for an email Gravatar can create some pseudo-random generated avatars based on an email hash.
|
|
||||||
; You can choose between these presets:
|
|
||||||
; - mm : (mystery-man) a static image
|
|
||||||
; - identicon: a generated geometric pattern based on email hash
|
|
||||||
; - monsterid: a generated 'monster' with different colors, faces, etc. based on email hash
|
|
||||||
; - wavatar : faces with different features and backgrounds based on email hash
|
|
||||||
; - retro : 8-bit arcade-styled pixelated faces based on email hash
|
|
||||||
default_avatar = identicon
|
|
||||||
|
|
||||||
INI;
|
|
||||||
//Keep this line
|
|
|
@ -39,7 +39,7 @@ function libravatar_uninstall()
|
||||||
|
|
||||||
function libravatar_load_config(App $a)
|
function libravatar_load_config(App $a)
|
||||||
{
|
{
|
||||||
$a->loadConfigFile(__DIR__. '/config/libravatar.ini.php');
|
$a->loadConfigFile(__DIR__ . '/config/libravatar.config.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue