X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModule%2FFiler%2FSaveTag.php;h=12226107bae6122e0872d5920b92d7babb137c86;hb=01640a7045e146759bc936dd499ac27738b78940;hp=1c3c3af88f531c086456b9baec6abb370717b4c2;hpb=9e9429b56d85626259e89d6373e59f9307be9c78;p=friendica.git diff --git a/src/Module/Filer/SaveTag.php b/src/Module/Filer/SaveTag.php index 1c3c3af88f..12226107ba 100644 --- a/src/Module/Filer/SaveTag.php +++ b/src/Module/Filer/SaveTag.php @@ -1,10 +1,27 @@ . + * + */ namespace Friendica\Module\Filer; use Friendica\BaseModule; -use Friendica\Core\L10n; -use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\DI; use Friendica\Model; @@ -18,7 +35,7 @@ class SaveTag extends BaseModule public static function init(array $parameters = []) { if (!local_user()) { - info(L10n::t('You must be logged in to use this module')); + info(DI::l10n()->t('You must be logged in to use this module')); DI::baseUrl()->redirect(); } } @@ -37,7 +54,7 @@ class SaveTag extends BaseModule if ($item_id && strlen($term)) { // file item Model\FileTag::saveFile(local_user(), $item_id, $term); - info(L10n::t('Filetag %s saved to item', $term)); + info(DI::l10n()->t('Filetag %s saved to item', $term)); } // return filer dialog @@ -46,8 +63,8 @@ class SaveTag extends BaseModule $tpl = Renderer::getMarkupTemplate("filer_dialog.tpl"); echo Renderer::replaceMacros($tpl, [ - '$field' => ['term', L10n::t("Save to Folder:"), '', '', $filetags, L10n::t('- select -')], - '$submit' => L10n::t('Save'), + '$field' => ['term', DI::l10n()->t("Save to Folder:"), '', '', $filetags, DI::l10n()->t('- select -')], + '$submit' => DI::l10n()->t('Save'), ]); exit;