Fix language (again ;-) )
This commit is contained in:
parent
eb024a3718
commit
79e69ee528
4 changed files with 5 additions and 5 deletions
|
@ -3,8 +3,8 @@
|
||||||
namespace Friendica\Factory;
|
namespace Friendica\Factory;
|
||||||
|
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Core\L10n\L10n;
|
|
||||||
use Friendica\Core\Config\Cache\PConfigCache;
|
use Friendica\Core\Config\Cache\PConfigCache;
|
||||||
|
use Friendica\Core\L10n\L10n;
|
||||||
use Friendica\Factory;
|
use Friendica\Factory;
|
||||||
use Friendica\Util\BasePath;
|
use Friendica\Util\BasePath;
|
||||||
use Friendica\Util\BaseURL;
|
use Friendica\Util\BaseURL;
|
||||||
|
@ -40,7 +40,7 @@ class DependencyFactory
|
||||||
$logger = Factory\LoggerFactory::create($channel, $database, $config, $profiler);
|
$logger = Factory\LoggerFactory::create($channel, $database, $config, $profiler);
|
||||||
Factory\LoggerFactory::createDev($channel, $config, $profiler);
|
Factory\LoggerFactory::createDev($channel, $config, $profiler);
|
||||||
$baseURL = new BaseURL($config, $_SERVER);
|
$baseURL = new BaseURL($config, $_SERVER);
|
||||||
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'de')),
|
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
|
||||||
$database,
|
$database,
|
||||||
$logger);
|
$logger);
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ class ApiTest extends DatabaseTest
|
||||||
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
||||||
$baseUrl = new BaseURL($config, $_SERVER);
|
$baseUrl = new BaseURL($config, $_SERVER);
|
||||||
$router = new App\Router();
|
$router = new App\Router();
|
||||||
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'en')),
|
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
|
||||||
self::$dba,
|
self::$dba,
|
||||||
$logger);
|
$logger);
|
||||||
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);
|
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);
|
||||||
|
|
|
@ -21,7 +21,7 @@ class DBATest extends DatabaseTest
|
||||||
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
||||||
$baseUrl = new BaseURL($config, $_SERVER);
|
$baseUrl = new BaseURL($config, $_SERVER);
|
||||||
$router = new App\Router();
|
$router = new App\Router();
|
||||||
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'en')),
|
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
|
||||||
self::$dba,
|
self::$dba,
|
||||||
$logger);
|
$logger);
|
||||||
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);
|
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);
|
||||||
|
|
|
@ -25,7 +25,7 @@ class DBStructureTest extends DatabaseTest
|
||||||
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
$logger = Factory\LoggerFactory::create('test', self::$dba, $config, self::$profiler);
|
||||||
$baseUrl = new BaseURL($config, $_SERVER);
|
$baseUrl = new BaseURL($config, $_SERVER);
|
||||||
$router = new App\Router();
|
$router = new App\Router();
|
||||||
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language', 'en')),
|
$l10n = new L10n(L10n::detectLanguage($config->get('system', 'language')),
|
||||||
self::$dba,
|
self::$dba,
|
||||||
$logger);
|
$logger);
|
||||||
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);
|
$this->app = new App(self::$dba, $config, self::$mode, $router, $baseUrl, $logger, self::$profiler, $l10n, false);
|
||||||
|
|
Loading…
Reference in a new issue