[vhffs-dev] [876] Fixes the refresh of the cookies when user save its preferences

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 876
Author:   gradator
Date:     2007-09-08 02:13:58 +0000 (Sat, 08 Sep 2007)

Log Message:
-----------
Fixes the refresh of the cookies when user save its preferences

Modified Paths:
--------------
    trunk/vhffs-panel/user/prefs.pl


Modified: trunk/vhffs-panel/user/prefs.pl
===================================================================
--- trunk/vhffs-panel/user/prefs.pl	2007-09-08 01:21:00 UTC (rev 875)
+++ trunk/vhffs-panel/user/prefs.pl	2007-09-08 02:13:58 UTC (rev 876)
@@ -78,10 +78,10 @@
 
 
     # Checks data and perform requested modifications
-    $panel->{'themecookie'} = CGI->cookie( -name=>"theme", -value=>$theme, -expires=>'+10y' );
+    $panel->add_cookie( CGI->cookie( -name=>"theme", -value=>$theme, -expires=>'+10y' ) );
     Vhffs::Panel::User::set_theme( $user, $theme );
 
-    $panel->{'langcookie'} = CGI->cookie( -name=>"language", -value=>$lang, -expires=>'+10y' );
+    $panel->add_cookie( CGI->cookie( -name=>"language", -value=>$lang, -expires=>'+10y' ) );
     Vhffs::Panel::User::set_lang( $user, $lang );
 
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/