mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Do not suppress PHP notices/errors in language packs if DEBUG_EXTRA mode enabled. (Bug #41485)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9383 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f522d2b857
commit
8dfc457858
2 changed files with 9 additions and 2 deletions
|
@ -121,6 +121,7 @@
|
||||||
<li>[Fix] Fix javascript errors in simple header (prosilver) by adding forum_fn.js and the corresponding variables. (Bug #42135)</li>
|
<li>[Fix] Fix javascript errors in simple header (prosilver) by adding forum_fn.js and the corresponding variables. (Bug #42135)</li>
|
||||||
<li>[Fix] Set connection encoding for MySQL versions 4.1.0 to 4.1.2. This may fix some conversion issues with special characters. (Bug #41805)</li>
|
<li>[Fix] Set connection encoding for MySQL versions 4.1.0 to 4.1.2. This may fix some conversion issues with special characters. (Bug #41805)</li>
|
||||||
<li>[Fix] Deleting private message attachments could delete post attachments. (Bug #42815)</li>
|
<li>[Fix] Deleting private message attachments could delete post attachments. (Bug #42815)</li>
|
||||||
|
<li>[Fix] Do not suppress PHP notices/errors in language packs if DEBUG_EXTRA mode enabled. (Bug #41485)</li>
|
||||||
<li>[Change] Allow download of conflicting file for later reference in automatic updater</li>
|
<li>[Change] Allow download of conflicting file for later reference in automatic updater</li>
|
||||||
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
|
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
|
||||||
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
|
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
|
||||||
|
|
|
@ -1534,7 +1534,10 @@ class user extends session
|
||||||
// We include common language file here to not load it every time a custom language file is included
|
// We include common language file here to not load it every time a custom language file is included
|
||||||
$lang = &$this->lang;
|
$lang = &$this->lang;
|
||||||
|
|
||||||
if ((@include $this->lang_path . $this->lang_name . "/common.$phpEx") === false)
|
// Do not suppress error if in DEBUG_EXTRA mode
|
||||||
|
$include_result = (defined('DEBUG_EXTRA')) ? (include $this->lang_path . $this->lang_name . "/common.$phpEx") : (@include $this->lang_path . $this->lang_name . "/common.$phpEx");
|
||||||
|
|
||||||
|
if ($include_result === false)
|
||||||
{
|
{
|
||||||
die('Language file ' . $this->lang_path . $this->lang_name . "/common.$phpEx" . " couldn't be opened.");
|
die('Language file ' . $this->lang_path . $this->lang_name . "/common.$phpEx" . " couldn't be opened.");
|
||||||
}
|
}
|
||||||
|
@ -2008,7 +2011,10 @@ class user extends session
|
||||||
$language_filename = $this->lang_path . $this->lang_name . '/' . (($use_help) ? 'help_' : '') . $lang_file . '.' . $phpEx;
|
$language_filename = $this->lang_path . $this->lang_name . '/' . (($use_help) ? 'help_' : '') . $lang_file . '.' . $phpEx;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((@include $language_filename) === false)
|
// Do not suppress error if in DEBUG_EXTRA mode
|
||||||
|
$include_result = (defined('DEBUG_EXTRA')) ? (include $language_filename) : (@include $language_filename);
|
||||||
|
|
||||||
|
if ($include_result === false)
|
||||||
{
|
{
|
||||||
trigger_error('Language file ' . $language_filename . ' couldn\'t be opened.', E_USER_ERROR);
|
trigger_error('Language file ' . $language_filename . ' couldn\'t be opened.', E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue