Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13942

phpbb\user::set_lang() adds extra path and PHP extension to ext lang files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.5-RC1
    • Fix Version/s: 3.1.5
    • Component/s: None
    • Labels:
      None

      Description

      The phpbb\user::set_lang() method incorrectly checks if a path to a language files needs to be prefixed with the phpbb_root_path and suffixed with the .php extension. This causes the following error when the board's language is not English and the user's language is English.

      General Error
      Language file ./../ext/board3/portal/language/en/ext/board3/portal/language/de/info_acp_portal.php.php couldn't be opened.
       
      BACKTRACE
       
      FILE: (not given by php)
      LINE: (not given by php)
      CALL: msg_handler()
       
      FILE: [ROOT]/phpbb/user.php
      LINE: 667
      CALL: trigger_error()
       
      FILE: [ROOT]/phpbb/user.php
      LINE: 577
      CALL: phpbb\user->set_lang()
       
      FILE: [ROOT]/phpbb/user.php
      LINE: 596
      CALL: phpbb\user->add_lang()
       
      FILE: [ROOT]/includes/functions_module.php
      LINE: 1092
      CALL: phpbb\user->add_lang_ext()
       
      FILE: [ROOT]/includes/functions_module.php
      LINE: 198
      CALL: p_master->add_mod_info()
       
      FILE: [ROOT]/adm/index.php
      LINE: 71
      CALL: p_master->list_modules()
      

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              Marc Marc
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: