aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-07-28 08:01:08 +0000
committernikrou <nikrou@piwigo.org>2006-07-28 08:01:08 +0000
commit96bc8e8717dfd0fce08dabbe91953308c8098be9 (patch)
tree0dbaa740279cf5047d8fe62e1b49bc3784d36be6 /include
parentbc65a0d6cd718ecbaa70ea699c6ec482a3e3af65 (diff)
Fixed missing $lang and extra code not needed
git-svn-id: http://piwigo.org/svn/trunk@1509 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions.inc.php6
1 files 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)
)
);