added $GLOBALS['PMA_errors'] array
This commit is contained in:
@@ -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
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
6
main.php
6
main.php
@@ -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
|
||||||
|
Reference in New Issue
Block a user