X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=group_text%2Fgroup_text.php;h=e0e61ee54fb9e3385cefd83f4738d3ded8db4787;hb=1c9f61350917fe289c2bae4d69bd43ea1fdfba4b;hp=b82c751b2540a6753976e827bc301e7256fa0dd3;hpb=febc835a2d90509a54a41dca07dba1d8e3ed6d07;p=friendica-addons.git diff --git a/group_text/group_text.php b/group_text/group_text.php index b82c751b..e0e61ee5 100644 --- a/group_text/group_text.php +++ b/group_text/group_text.php @@ -6,9 +6,7 @@ * Author: Thomas Willingham */ use Friendica\Core\Hook; -use Friendica\Core\L10n; use Friendica\Core\Logger; -use Friendica\Core\PConfig; use Friendica\DI; function group_text_install() { @@ -19,18 +17,6 @@ function group_text_install() { Logger::log("installed group_text"); } - -function group_text_uninstall() { - - Hook::unregister('addon_settings', 'addon/group_text/group_text.php', 'group_text_settings'); - Hook::unregister('addon_settings_post', 'addon/group_text/group_text.php', 'group_text_settings_post'); - - - Logger::log("removed group_text"); -} - - - /** * * Callback from the settings post function. @@ -44,8 +30,6 @@ function group_text_settings_post($a,$post) { if(! local_user() || empty($_POST['group_text-submit'])) return; DI::pConfig()->set(local_user(),'system','groupedit_image_limit',intval($_POST['group_text'])); - - info(L10n::t('Group Text settings updated.') . EOL); } @@ -75,14 +59,14 @@ function group_text_settings(&$a,&$s) { /* Add some HTML to the existing form */ $s .= '
'; - $s .= '

' . L10n::t('Group Text') . '

'; + $s .= '

' . DI::l10n()->t('Group Text') . '

'; $s .= '
'; - $s .= ''; + $s .= ''; $s .= ''; $s .= '
'; /* provide a submit button */ - $s .= '
'; + $s .= '
'; }