X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcarnet.php;h=afd1a315d3641d6198adf7f9e0aed5ba40dc7a74;hb=fa9994fa46e744766e87e445413610cf3f184374;hp=6f1b9a8d9909989dc94426b19bc4d0be689f8055;hpb=34465ab035104f739a54ec62660f04f874448627;p=platal.git diff --git a/modules/carnet.php b/modules/carnet.php index 6f1b9a8..afd1a31 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -255,7 +255,7 @@ class CarnetModule extends PLModule $this->_add_rss_link($page); $uid = S::i('uid'); - $user = Env::v('user'); + $user = S::user(); // For XSRF protection, checks both the normal xsrf token, and the special RSS token. // It allows direct linking to contact adding in the RSS feed. @@ -285,7 +285,6 @@ class CarnetModule extends PLModule } $search = false; - $user = S::user(); require_once 'userset.inc.php';