display error in error box

This commit is contained in:
Sebastian Mendel
2005-11-02 07:22:55 +00:00
parent ce68e023e2
commit 522c09e27b
2 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-11-01 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/dbg/setup.php: display error in error box
2005-11-01 Marc Delisle <lem9@users.sourceforge.net> 2005-11-01 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: undefined variable when changing a password * server_privileges.php: undefined variable when changing a password

View File

@@ -10,8 +10,11 @@ if (isset($GLOBALS['cfg']['DBG']['enable']) && $GLOBALS['cfg']['DBG']['enable'])
PMA_dl('dbg'); PMA_dl('dbg');
} }
if (!@extension_loaded('dbg')) { if (!@extension_loaded('dbg')) {
echo sprintf($strCantLoad, 'DBG') . '<br />' . "\n" echo '<div class="warning">'
. '<a href="./Documentation.html#faqdbg" target="documentation">' . $GLOBALS['strDocu'] . '</a>' . "\n"; .sprintf($strCantLoad, 'DBG')
.' <a href="./Documentation.html#faqdbg" target="documentation">'
.$GLOBALS['strDocu'] . '</a>'
.'</div>';
require_once('./footer.inc.php'); require_once('./footer.inc.php');
} }
$GLOBALS['DBG'] = true; $GLOBALS['DBG'] = true;