From ee0b2fee370e044c960914cb97253cf17d8024fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 22 Jun 2011 09:29:14 +0200 Subject: [PATCH] Better error message when config file can not be parsed - shorter text - directly show errors in iframe instead saying user to load other page --- libraries/common.inc.php | 13 +++++-------- show_config_errors.php | 2 -- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/libraries/common.inc.php b/libraries/common.inc.php index 0887db824f..5bdb45e51b 100644 --- a/libraries/common.inc.php +++ b/libraries/common.inc.php @@ -584,14 +584,11 @@ require './libraries/select_lang.lib.php'; * this check is done here after loading language files to present errors in locale */ if ($GLOBALS['PMA_Config']->error_config_file) { - $error = __('phpMyAdmin was unable to read your configuration file!
This might happen if PHP finds a parse error in it or PHP cannot find the file.
Please call the configuration file directly using the link below and read the PHP error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere.
If you receive a blank page, everything is fine.') - . '

' - . ($GLOBALS['PMA_Config']->getSource() == CONFIG_FILE ? - '' . $GLOBALS['PMA_Config']->getSource() . '' - : - '' . $GLOBALS['PMA_Config']->getSource() . ''); + $error = '

' . __('Failed to to read configuration file') . '

' + . _('This usually means there is a syntax error in it, please check any errors shown bellow.') + . '
' + . '
' + . '