From 96bc8e8717dfd0fce08dabbe91953308c8098be9 Mon Sep 17 00:00:00 2001 From: nikrou Date: Fri, 28 Jul 2006 08:01:08 +0000 Subject: Fixed missing $lang and extra code not needed git-svn-id: http://piwigo.org/svn/trunk@1509 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/functions.inc.php b/include/functions.inc.php index 9d8ea914f..e8d9957bb 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -556,9 +556,9 @@ function pwg_debug( $string ) * @param integer $refreh_time * @return void */ -function redirect( $url , $msg = '', $refresh_time = 0) +function redirect( $url , $msg = '', $refresh_time = 1000) { - global $lang_info; + global $lang_info, $lang; if (!isset($lang_info)) { include_once(get_language_filepath('common.lang.php')); @@ -581,8 +581,6 @@ function redirect( $url , $msg = '', $refresh_time = 0) 'CONTENT_ENCODING' => $lang_info['charset'], 'LANG'=>$lang_info['code'], 'DIR'=>$lang_info['direction'], - 'CONTENT' => print_r($user,true), - 'LANG_INFO' => print_r($lang_info,true) ) ); -- cgit v1.2.3