[ticket/10824] Small fixes to code style after code review

PHPBB3-10824
This commit is contained in:
Marc Alexander 2021-01-18 21:08:31 +01:00
parent 42b2a109d1
commit 262bf5d71c
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -191,7 +191,7 @@ class acp_language
try try
{ {
$lang_cfg = $this->language_helper->get_language_data_from_composer_file("{$this->phpbb_root_path}language/$lang_iso/composer.json"); $lang_cfg = $this->language_helper->get_language_data_from_composer_file($this->phpbb_root_path . 'language/' . $lang_iso . '/composer.json');
} }
catch (\DomainException $e) catch (\DomainException $e)
{ {
@ -243,7 +243,7 @@ class acp_language
if (file_exists($this->phpbb_root_path . 'language/' . $lang_iso . '/' . $relative_path)) if (file_exists($this->phpbb_root_path . 'language/' . $lang_iso . '/' . $relative_path))
{ {
if (substr($relative_path, 0 - strlen($this->php_ext)) === $this->php_ext) if (substr($relative_path, -strlen($this->php_ext)) === $this->php_ext)
{ {
$missing_vars = $this->compare_language_files($this->config['default_lang'], $lang_iso, $relative_path); $missing_vars = $this->compare_language_files($this->config['default_lang'], $lang_iso, $relative_path);