X-Git-Url: https://git.mxchange.org/?p=friendica-addons.git;a=blobdiff_plain;f=libravatar%2Flibravatar.php;h=bba5a88197fba24ef1bfed022d55b6d750a71538;hp=3979416f154f8ee74d6c549c2e20dec77b049a11;hb=c71f7b0e1a7bb5ca88347b295dd3a4cc3106c5a9;hpb=0afd633346b517894ff8e92c705bd5d052dd06a2 diff --git a/libravatar/libravatar.php b/libravatar/libravatar.php index 3979416f..bba5a881 100644 --- a/libravatar/libravatar.php +++ b/libravatar/libravatar.php @@ -1,7 +1,7 @@ = 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 */ @@ -9,7 +9,7 @@ use Friendica\Core\Addon; use Friendica\Core\Config; /** - * Installs the plugin hook + * Installs the addon hook */ function libravatar_install() { if (! version_compare(PHP_VERSION, '5.3.0', '>=')) { @@ -23,7 +23,7 @@ function libravatar_install() { } /** - * Removes the plugin hook + * Removes the addon hook */ function libravatar_uninstall() { Addon::unregisterHook('avatar_lookup', 'addon/libravatar/libravatar.php', 'libravatar_lookup'); @@ -61,7 +61,7 @@ function libravatar_lookup($a, &$b) { /** * 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'); @@ -106,7 +106,7 @@ function libravatar_plugin_admin (&$a, &$o) { /** * 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');