1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[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
{
$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)
{
@ -243,7 +243,7 @@ class acp_language
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);