<?php
/**
* Name: Libravatar Support
- * Description: If there is no avatar image for a new user or contact this plugin will look for one at Libravatar. Please disable Gravatar addon if you use this one. (requires PHP >= 5.3)
+ * Description: If there is no avatar image for a new user or contact this addon will look for one at Libravatar. Please disable Gravatar addon if you use this one. (requires PHP >= 5.3)
* Version: 1.1
* Author: Klaus Weidenbach <http://friendica.dszdw.net/profile/klaus>
*/
use Friendica\Core\Config;
/**
- * Installs the plugin hook
+ * Installs the addon hook
*/
function libravatar_install() {
if (! version_compare(PHP_VERSION, '5.3.0', '>=')) {
}
/**
- * Removes the plugin hook
+ * Removes the addon hook
*/
function libravatar_uninstall() {
Addon::unregisterHook('avatar_lookup', 'addon/libravatar/libravatar.php', 'libravatar_lookup');
/**
* Display admin settings for this addon
*/
-function libravatar_plugin_admin (&$a, &$o) {
+function libravatar_addon_admin (&$a, &$o) {
$t = get_markup_template( "admin.tpl", "addon/libravatar" );
$default_avatar = Config::get('libravatar', 'default_img');
/**
* Save admin settings
*/
-function libravatar_plugin_admin_post (&$a) {
+function libravatar_addon_admin_post (&$a) {
check_form_security_token('libravatarrsave');
$default_avatar = ((x($_POST, 'avatar')) ? notags(trim($_POST['avatar'])) : 'identicon');