mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
I'm removing the HEADER_INC check from the error handler to resolve incomplete output in some cases.
If this causes a problem in a specific case, please let me know the details git-svn-id: file:///svn/phpbb/trunk@5491 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c0214e35e1
commit
964615eb07
1 changed files with 17 additions and 20 deletions
|
@ -1603,26 +1603,23 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||||
$cache->unload();
|
$cache->unload();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined('HEADER_INC'))
|
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
|
||||||
{
|
echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">';
|
||||||
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
|
echo '<head>';
|
||||||
echo '<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">';
|
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
|
||||||
echo '<head>';
|
echo '<title>' . $msg_title . '</title>';
|
||||||
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />';
|
echo '<link href="' . $phpbb_root_path . 'adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />';
|
||||||
echo '<title>' . $msg_title . '</title>';
|
echo '</head>';
|
||||||
echo '<link href="' . $phpbb_root_path . 'adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />';
|
echo '<body id="errorpage">';
|
||||||
echo '</head>';
|
echo '<div id="wrap">';
|
||||||
echo '<body id="errorpage">';
|
echo ' <div id="page-header">';
|
||||||
echo '<div id="wrap">';
|
echo ' <a href="' . $phpbb_root_path . '">Return to forum index</a>';
|
||||||
echo ' <div id="page-header">';
|
echo ' </div>';
|
||||||
echo ' <a href="' . $phpbb_root_path . '">Return to forum index</a>';
|
echo ' <div id="page-body">';
|
||||||
echo ' </div>';
|
echo ' <div class="panel">';
|
||||||
echo ' <div id="page-body">';
|
echo ' <span class="corners-top"><span></span></span>';
|
||||||
echo ' <div class="panel">';
|
echo ' <div id="content">';
|
||||||
echo ' <span class="corners-top"><span></span></span>';
|
echo ' <h1>General Error</h1>';
|
||||||
echo ' <div id="content">';
|
|
||||||
echo ' <h1>General Error</h1>';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo ' <h2>' . $msg_text . '</h2>';
|
echo ' <h2>' . $msg_text . '</h2>';
|
||||||
echo ' <p>Please notify the board administrator or webmaster : <a href="mailto:' . $config['board_contact'] . '">' . $config['board_contact'] . '</a></p>';
|
echo ' <p>Please notify the board administrator or webmaster : <a href="mailto:' . $config['board_contact'] . '">' . $config['board_contact'] . '</a></p>';
|
||||||
|
|
Loading…
Add table
Reference in a new issue