diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-11-08 15:02:45 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-11-09 10:56:49 +0100 |
commit | b99e00f7cd5f7e2090f44cd97bfb426db55340c2 (patch) | |
tree | 1eea2479c3438c55a9c5c284cc28483fe8dbaf4b /application/Languages.php | |
parent | 53054b2bf6a919fd4ff9b44b6ad1986f21f488b6 (diff) | |
download | Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.gz Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.zst Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.zip |
Manually fix remaining PHPCS errors
Diffstat (limited to 'application/Languages.php')
-rw-r--r-- | application/Languages.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/application/Languages.php b/application/Languages.php index 8d0e13c8..60e91631 100644 --- a/application/Languages.php +++ b/application/Languages.php | |||
@@ -41,7 +41,7 @@ class Languages | |||
41 | /** | 41 | /** |
42 | * Core translations domain | 42 | * Core translations domain |
43 | */ | 43 | */ |
44 | const DEFAULT_DOMAIN = 'shaarli'; | 44 | public const DEFAULT_DOMAIN = 'shaarli'; |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * @var TranslatorInterface | 47 | * @var TranslatorInterface |
@@ -122,7 +122,9 @@ class Languages | |||
122 | $translations = new Translations(); | 122 | $translations = new Translations(); |
123 | // Core translations | 123 | // Core translations |
124 | try { | 124 | try { |
125 | $translations = $translations->addFromPoFile('inc/languages/' . $this->language . '/LC_MESSAGES/shaarli.po'); | 125 | $translations = $translations->addFromPoFile( |
126 | 'inc/languages/' . $this->language . '/LC_MESSAGES/shaarli.po' | ||
127 | ); | ||
126 | $translations->setDomain('shaarli'); | 128 | $translations->setDomain('shaarli'); |
127 | $this->translator->loadTranslations($translations); | 129 | $this->translator->loadTranslations($translations); |
128 | } catch (\InvalidArgumentException $e) { | 130 | } catch (\InvalidArgumentException $e) { |