phpbb/phpbb — pull request #2158 by VSEphpbb (2014-03-18 16:00:36+00:00)
Title: [ticket/12285] Correctly reset lang_name for extension compatibility

By using just $lang_path, the lang_name could be reset based on the
presence of common.php inside individual extensions. So extensions that
do not support the additional languages on a board would fall back
permanently to the board’s default config language, preventing any other
extensions that load next from being able to use the user’s preferred
lang iso even if it were available in those later extensions.
http://tracker.phpbb.com/browse/PHPBB3-12285

PHPBB3-12285