From e988938d43164c21eca0535ff59cab4f6e716fb5 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Mon, 28 Nov 2005 16:42:00 +0000 Subject: [PATCH] use PMA_sendHeaderLocation() --- ChangeLog | 1 + libraries/select_lang.lib.php | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 02f5c150e..bdcfbac60 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/libraries/select_lang.lib.php b/libraries/select_lang.lib.php index 5b917936c..b823998f1 100644 --- a/libraries/select_lang.lib.php +++ b/libraries/select_lang.lib.php @@ -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; }