X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FWidget%2FCalendarExport.php;h=dda3513fec0a917c3c84053a983043f4b82a87d2;hb=18745b1723b3f8580704914e8f9df8441c859e70;hp=c78ca21ebe6f4ad286c999c2b493186d0c4026cf;hpb=b543ee8ac78168328c7a7f2d725ee01bb333e941;p=friendica.git diff --git a/src/Content/Widget/CalendarExport.php b/src/Content/Widget/CalendarExport.php index c78ca21ebe..dda3513fec 100644 --- a/src/Content/Widget/CalendarExport.php +++ b/src/Content/Widget/CalendarExport.php @@ -1,14 +1,29 @@ . + * */ namespace Friendica\Content\Widget; use Friendica\Content\Feature; -use Friendica\Core\L10n; use Friendica\Core\Renderer; +use Friendica\DI; /** * TagCloud widget @@ -18,13 +33,13 @@ use Friendica\Core\Renderer; class CalendarExport { /** - * @brief Get the events widget. + * Get the events widget. * * @return string Formated HTML of the calendar widget. * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public static function getHTML() { - $a = \get_app(); + $a = DI::app(); if (empty($a->data['user'])) { return; @@ -61,9 +76,9 @@ class CalendarExport $tpl = Renderer::getMarkupTemplate("widget/events.tpl"); $return = Renderer::replaceMacros($tpl, [ - '$etitle' => L10n::t("Export"), - '$export_ical' => L10n::t("Export calendar as ical"), - '$export_csv' => L10n::t("Export calendar as csv"), + '$etitle' => DI::l10n()->t("Export"), + '$export_ical' => DI::l10n()->t("Export calendar as ical"), + '$export_csv' => DI::l10n()->t("Export calendar as csv"), '$user' => $user ]);