Fixed missing $lang and extra code not needed

git-svn-id: http://piwigo.org/svn/trunk@1509 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou
2006-07-28 08:01:08 +00:00
parent bc65a0d6cd
commit 96bc8e8717

View File

@@ -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)
)
);