mirror of
https://github.com/friendica/friendica
synced 2025-04-28 17:44:22 +02:00
Move L10n class from L10n subdir to Core (replacing old wrapper)
This commit is contained in:
parent
67f2066b8b
commit
2838635d64
30 changed files with 356 additions and 492 deletions
|
@ -22,7 +22,7 @@ use Friendica\Util\DateTimeFormat;
|
|||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Strings;
|
||||
use LightOpenID;
|
||||
use Friendica\Core\L10n\L10n;
|
||||
use Friendica\Core\L10n;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
|
|
|
@ -207,15 +207,15 @@ class Module
|
|||
/**
|
||||
* Run the determined module class and calls all hooks applied to
|
||||
*
|
||||
* @param Core\L10n\L10n $l10n The L10n instance
|
||||
* @param App\BaseURL $baseUrl The Friendica Base URL
|
||||
* @param LoggerInterface $logger The Friendica logger
|
||||
* @param array $server The $_SERVER variable
|
||||
* @param array $post The $_POST variables
|
||||
* @param \Friendica\Core\L10n $l10n The L10n instance
|
||||
* @param App\BaseURL $baseUrl The Friendica Base URL
|
||||
* @param LoggerInterface $logger The Friendica logger
|
||||
* @param array $server The $_SERVER variable
|
||||
* @param array $post The $_POST variables
|
||||
*
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function run(Core\L10n\L10n $l10n, App\BaseURL $baseUrl, LoggerInterface $logger, array $server, array $post)
|
||||
public function run(Core\L10n $l10n, App\BaseURL $baseUrl, LoggerInterface $logger, array $server, array $post)
|
||||
{
|
||||
if ($this->printNotAllowedAddon) {
|
||||
info($l10n->t("You must be logged in to use addons. "));
|
||||
|
|
|
@ -10,7 +10,7 @@ use Friendica\Content\Nav;
|
|||
use Friendica\Core\Config\IConfiguration;
|
||||
use Friendica\Core\Config\IPConfiguration;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n\L10n;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Theme;
|
||||
use Friendica\Module\Special\HTTPException as ModuleHTTPException;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue