added $GLOBALS['PMA_errors'] array

This commit is contained in:
Sebastian Mendel
2005-11-17 12:07:13 +00:00
parent cae92ceb9f
commit 507ea546b8
3 changed files with 62 additions and 50 deletions

View File

@@ -21,6 +21,8 @@ $Source$
libraries/select_lang.php: keep the global space clean libraries/select_lang.php: keep the global space clean
- unset variables after use - unset variables after use
- commented out some never used variables - commented out some never used variables
* main.php, libraries/common.lib.php, libraries/dbi/*:
- added $GLOBALS['PMA_errors'] array
2005-11-16 Marc Delisle <lem9@users.sourceforge.net> 2005-11-16 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_links.php: missing menu tabs * tbl_properties_links.php: missing menu tabs

View File

@@ -51,10 +51,14 @@
// TODO: remove direct calling from elsewhere // TODO: remove direct calling from elsewhere
require_once('./libraries/grab_globals.lib.php'); require_once('./libraries/grab_globals.lib.php');
/**
* @var array $GLOBALS['PMA_errors'] holds errors
*/
$GLOBALS['PMA_errors'] = array();
/** /**
* Minimum inclusion? (i.e. for the stylesheet builder) * Minimum inclusion? (i.e. for the stylesheet builder)
*/ */
if (!isset($is_minimum_common)) { if (!isset($is_minimum_common)) {
$is_minimum_common = FALSE; $is_minimum_common = FALSE;
} }

View File

@@ -512,6 +512,12 @@ echo ($str_iconic_list != '' ? sprintf($str_iconic_list,'<a href="http://www.php
<hr /> <hr />
<?php <?php
if ( ! empty( $GLOBALS['PMA_errors'] ) && is_array( $GLOBALS['PMA_errors'] ) ) {
foreach( $GLOBALS['PMA_errors'] as $error ) {
echo '<div class="error">' . $error . '</div>' . "\n";
}
}
/** /**
* Removed the "empty $cfg['PmaAbsoluteUri']" warning on 2005-08-23 * Removed the "empty $cfg['PmaAbsoluteUri']" warning on 2005-08-23
* See https://sourceforge.net/tracker/index.php?func=detail&aid=1257134&group_id=23067&atid=377411 * See https://sourceforge.net/tracker/index.php?func=detail&aid=1257134&group_id=23067&atid=377411