Add wrapper to show config errors even with no error reporting (RFE #1447173).

This commit is contained in:
Michal Čihař
2006-03-16 22:15:07 +00:00
parent 2741f16ecb
commit 7b48016c66
3 changed files with 21 additions and 3 deletions

View File

@@ -2839,9 +2839,13 @@ require_once './libraries/select_lang.lib.php';
*/
if ($_SESSION['PMA_Config']->error_config_file) {
$GLOBALS['PMA_errors'][] = $strConfigFileError
.'<br /><br />'
.'<a href="' . $_SESSION['PMA_Config']->getSource() . '"'
.' target="_blank">' . $_SESSION['PMA_Config']->getSource() . '</a>';
. '<br /><br />'
. ($_SESSION['PMA_Config']->getSource() == './config.inc.php' ?
'<a href="show_config_errors.php"'
.' target="_blank">' . $_SESSION['PMA_Config']->getSource() . '</a>'
:
'<a href="' . $_SESSION['PMA_Config']->getSource() . '"'
.' target="_blank">' . $_SESSION['PMA_Config']->getSource() . '</a>');
}
if ($_SESSION['PMA_Config']->error_config_default_file) {
$GLOBALS['PMA_errors'][] = sprintf($strConfigDefaultFileError,