X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=group_text%2Fgroup_text.php;h=b8a1d21fd0b7e5fcdd1f30c103c379a691676105;hb=0ea84cfb66366edbbe333e9fe3db6a35d07a9c17;hp=0e18ec526ceab647cd277ef85dc53f29cf68edbf;hpb=ea3a9052d83f8ea99cee8438022be0b022a24cc1;p=friendica-addons.git diff --git a/group_text/group_text.php b/group_text/group_text.php index 0e18ec52..b8a1d21f 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() { @@ -43,9 +41,9 @@ function group_text_uninstall() { function group_text_settings_post($a,$post) { if(! local_user() || empty($_POST['group_text-submit'])) return; - PConfig::set(local_user(),'system','groupedit_image_limit',intval($_POST['group_text'])); + DI::pConfig()->set(local_user(),'system','groupedit_image_limit',intval($_POST['group_text'])); - info(L10n::t('Group Text settings updated.') . EOL); + info(DI::l10n()->t('Group Text settings updated.') . EOL); } @@ -75,14 +73,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 .= '
'; }