X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fbanana.php;h=3dab3d1e44a4b0ee504d1ef13d4a677b6e1216dc;hb=cab0809050d58f8484608e91f7555ebd69dcb451;hp=aa5cccabd067e85876035dd8c1346717dd8c2ef5;hpb=68a269916d88ab4f635de4c96367af1ad82ff135;p=platal.git diff --git a/modules/banana.php b/modules/banana.php index aa5ccca..3dab3d1 100644 --- a/modules/banana.php +++ b/modules/banana.php @@ -72,11 +72,11 @@ class BananaModule extends PLModule SELECT nom,mail,sig,if(FIND_IN_SET('threads',flags),'1','0'), IF(FIND_IN_SET('automaj',flags),'1','0') FROM forums.profils - WHERE uid = {?}", Session::getInt('uid')); + WHERE uid = {?}", S::v('uid')); if (!(list($nom,$mail,$sig,$disp,$maj) = $req->fetchOneRow())) { - $nom = Session::get('prenom').' '.Session::get('nom'); - $mail = Session::get('forlife').'@'.$globals->mail->domain; - $sig = $nom.' ('.Session::getInt('promo').')'; + $nom = S::v('prenom').' '.S::v('nom'); + $mail = S::v('forlife').'@'.$globals->mail->domain; + $sig = $nom.' ('.S::v('promo').')'; $disp = 0; $maj = 0; } @@ -89,7 +89,7 @@ class BananaModule extends PLModule XDB::execute( 'REPLACE INTO forums.profils (uid,sig,mail,nom,flags) VALUES ({?},{?},{?},{?},{?})', - Session::getInt('uid'), Post::get('bananasig'), + S::v('uid'), Post::get('bananasig'), Post::get('bananamail'), Post::get('banananame'), (Post::getBool('bananadisplay') ? 'threads,' : '') . (Post::getBool('bananaupdate') ? 'automaj' : '')