use PMA_sendHeaderLocation()
This commit is contained in:
@@ -22,6 +22,7 @@ $Source$
|
|||||||
- revised
|
- revised
|
||||||
- added check for lang directory (./lang/)
|
- added check for lang directory (./lang/)
|
||||||
- check files for languages
|
- check files for languages
|
||||||
|
- use PMA_sendHeaderLocation()
|
||||||
* libraries/common.lib.php: moved all function to top, to make this as
|
* libraries/common.lib.php: moved all function to top, to make this as
|
||||||
early as possible available
|
early as possible available
|
||||||
|
|
||||||
|
@@ -139,8 +139,7 @@ if ( ! is_dir( $lang_path ) ) {
|
|||||||
. $lang_path . ', check your language directory.',
|
. $lang_path . ', check your language directory.',
|
||||||
E_USER_WARNING );
|
E_USER_WARNING );
|
||||||
// and tell the user
|
// and tell the user
|
||||||
header( 'Location: error.php?file=' . urlencode( __FILE__ )
|
PMA_sendHeaderLocation( 'error.php?error='
|
||||||
. '&line=' . urlencode( __LINE__ ) . '&error='
|
|
||||||
. urlencode( 'path to languages is invalid: ' . $lang_path ) );
|
. urlencode( 'path to languages is invalid: ' . $lang_path ) );
|
||||||
// stop execution
|
// stop execution
|
||||||
exit;
|
exit;
|
||||||
@@ -391,8 +390,7 @@ if ( ! PMA_langCheck() ) {
|
|||||||
E_USER_WARNING );
|
E_USER_WARNING );
|
||||||
// stop execution
|
// stop execution
|
||||||
// and tell the user that his choosen language is invalid
|
// and tell the user that his choosen language is invalid
|
||||||
header( 'Location: error.php?file=' . urlencode( __FILE__ )
|
PMA_sendHeaderLocation( 'error.php?error='
|
||||||
. '&line=' . urlencode( __LINE__ ) . '&error='
|
|
||||||
. urlencode( 'Could not load any language, please check your language settings and folder' ) );
|
. urlencode( 'Could not load any language, please check your language settings and folder' ) );
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user