X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=showmore%2Fshowmore.php;h=277c29ced5c380a9af00976d68ab3b6761d1c5ec;hb=c95713b19c35eff74052bf248bfc1025d5d9161b;hp=acd8e33db0f5dc94e5a6f9225c4ca7e8f02ec139;hpb=febc835a2d90509a54a41dca07dba1d8e3ed6d07;p=friendica-addons.git diff --git a/showmore/showmore.php b/showmore/showmore.php index acd8e33d..277c29ce 100644 --- a/showmore/showmore.php +++ b/showmore/showmore.php @@ -8,8 +8,6 @@ * */ use Friendica\Core\Hook; -use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\DI; use Friendica\Util\Strings; @@ -41,24 +39,24 @@ function showmore_addon_settings(&$a, &$s) $chars = DI::pConfig()->get(local_user(), 'showmore', 'chars', 1100); $s .= ''; - $s .= '

' . L10n::t('"Show more" Settings').'

'; + $s .= '

' . DI::l10n()->t('"Show more" Settings').'

'; $s .= '
'; $s .= ''; return; @@ -75,7 +73,7 @@ function showmore_addon_settings_post(&$a, &$b) $enable = (!empty($_POST['showmore-enable']) ? intval($_POST['showmore-enable']) : 0); $disable = 1-$enable; DI::pConfig()->set(local_user(), 'showmore', 'disable', $disable); - info(L10n::t('Show More Settings saved.') . EOL); + info(DI::l10n()->t('Show More Settings saved.') . EOL); } } @@ -134,9 +132,9 @@ function showmore_prepare_body(\Friendica\App $a, &$hook_data) if ($found) { $rnd = Strings::getRandomHex(8); - $hook_data['html'] = '' . $shortened . " " . - '' . L10n::t('show more') . '' . - ''; + $hook_data['html'] = '' . + ''; } }