X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseSearchModule.php;h=42bb943da0a5c54f6b31fcd40697e12bd99c261a;hb=1fc1989f93ee9a8a6014f4db6b4c260443f813d2;hp=2c1b2dc8d4d778d4bb0d98f369fc7ce6b8cf036d;hpb=393a67150171705b87cb803fc970a1f68987730d;p=friendica.git diff --git a/src/Module/BaseSearchModule.php b/src/Module/BaseSearchModule.php index 2c1b2dc8d4..42bb943da0 100644 --- a/src/Module/BaseSearchModule.php +++ b/src/Module/BaseSearchModule.php @@ -5,7 +5,6 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Content\ContactSelector; use Friendica\Content\Pager; -use Friendica\Core\L10n; use Friendica\Core\Renderer; use Friendica\Core\Search; use Friendica\DI; @@ -50,7 +49,7 @@ class BaseSearchModule extends BaseModule if (strpos($search, '@') === 0) { $search = substr($search, 1); $type = Search::TYPE_PEOPLE; - $header = L10n::t('People Search - %s', $search); + $header = DI::l10n()->t('People Search - %s', $search); if (strrpos($search, '@') > 0) { $results = Search::getContactsFromProbe($search); @@ -60,7 +59,7 @@ class BaseSearchModule extends BaseModule if (strpos($search, '!') === 0) { $search = substr($search, 1); $type = Search::TYPE_FORUM; - $header = L10n::t('Forum Search - %s', $search); + $header = DI::l10n()->t('Forum Search - %s', $search); } $args = DI::args(); @@ -91,7 +90,7 @@ class BaseSearchModule extends BaseModule protected static function printResult(ResultList $results, Pager $pager, $header = '') { if ($results->getTotal() == 0) { - info(L10n::t('No matches')); + info(DI::l10n()->t('No matches')); return ''; } @@ -128,10 +127,10 @@ class BaseSearchModule extends BaseModule } } else { $connLink = DI::baseUrl()->get() . '/follow/?url=' . $result->getUrl(); - $connTxt = L10n::t('Connect'); + $connTxt = DI::l10n()->t('Connect'); - $photo_menu['profile'] = [L10n::t("View Profile"), Model\Contact::magicLink($result->getUrl())]; - $photo_menu['follow'] = [L10n::t("Connect/Follow"), $connLink]; + $photo_menu['profile'] = [DI::l10n()->t("View Profile"), Model\Contact::magicLink($result->getUrl())]; + $photo_menu['follow'] = [DI::l10n()->t("Connect/Follow"), $connLink]; } $photo = str_replace("http:///photo/", Search::getGlobalDirectory() . "/photo/", $result->getPhoto());