use PMA_sendHeaderLocation()

This commit is contained in:
Sebastian Mendel
2005-11-28 16:42:00 +00:00
parent a3affc28d6
commit e988938d43
2 changed files with 3 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ $Source$
- revised
- added check for lang directory (./lang/)
- check files for languages
- use PMA_sendHeaderLocation()
* libraries/common.lib.php: moved all function to top, to make this as
early as possible available

View File

@@ -139,8 +139,7 @@ if ( ! is_dir( $lang_path ) ) {
. $lang_path . ', check your language directory.',
E_USER_WARNING );
// and tell the user
header( 'Location: error.php?file=' . urlencode( __FILE__ )
. '&line=' . urlencode( __LINE__ ) . '&error='
PMA_sendHeaderLocation( 'error.php?error='
. urlencode( 'path to languages is invalid: ' . $lang_path ) );
// stop execution
exit;
@@ -391,8 +390,7 @@ if ( ! PMA_langCheck() ) {
E_USER_WARNING );
// stop execution
// and tell the user that his choosen language is invalid
header( 'Location: error.php?file=' . urlencode( __FILE__ )
. '&line=' . urlencode( __LINE__ ) . '&error='
PMA_sendHeaderLocation( 'error.php?error='
. urlencode( 'Could not load any language, please check your language settings and folder' ) );
exit;
}