mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-20 18:28:55 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12193] Fix broken HTML if SQL error occurs during migration
This commit is contained in:
commit
cde0ebccd0
2 changed files with 12 additions and 0 deletions
|
@ -3849,6 +3849,16 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||||
if (defined('IN_INSTALL') || defined('DEBUG') || isset($auth) && $auth->acl_get('a_'))
|
if (defined('IN_INSTALL') || defined('DEBUG') || isset($auth) && $auth->acl_get('a_'))
|
||||||
{
|
{
|
||||||
$msg_text = $log_text;
|
$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))
|
if ((defined('IN_CRON') || defined('IMAGE_OUTPUT')) && isset($db))
|
||||||
|
|
|
@ -169,6 +169,8 @@ header('Content-type: text/html; charset=UTF-8');
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
define('IN_DB_UPDATE', true);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo firebird/mysql update?
|
* @todo firebird/mysql update?
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue