mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge pull request #2248 from Elsensee/ticket/12193
[ticket/12193] Fix broken HTML if SQL error occurs during migration * Elsensee/ticket/12193: [ticket/12193] Fix broken HTML if SQL error occurs during migration
This commit is contained in:
@@ -3849,6 +3849,16 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||
if (defined('IN_INSTALL') || defined('DEBUG') || isset($auth) && $auth->acl_get('a_'))
|
||||
{
|
||||
$msg_text = $log_text;
|
||||
|
||||
// If this is defined there already was some output
|
||||
// So let's not break it
|
||||
if (defined('IN_DB_UPDATE'))
|
||||
{
|
||||
echo '<div class="errorbox">' . $msg_text . '</div>';
|
||||
|
||||
$db->sql_return_on_error(true);
|
||||
phpbb_end_update($cache, $config);
|
||||
}
|
||||
}
|
||||
|
||||
if ((defined('IN_CRON') || defined('IMAGE_OUTPUT')) && isset($db))
|
||||
|
@@ -169,6 +169,8 @@ header('Content-type: text/html; charset=UTF-8');
|
||||
|
||||
<?php
|
||||
|
||||
define('IN_DB_UPDATE', true);
|
||||
|
||||
/**
|
||||
* @todo firebird/mysql update?
|
||||
*/
|
||||
|
Reference in New Issue
Block a user