X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fxnet.php;h=136382c969a352784bbba5cb3f730f1487f10f2c;hb=7996ae8cd41fbb3ccd748eaed71a50f866269c6e;hp=9ad297aa5e8002b99f1433e79913a213c4f6e462;hpb=0073747ac81cc9cff9e43847eb008f0e815255f0;p=platal.git diff --git a/modules/xnet.php b/modules/xnet.php index 9ad297a..136382c 100644 --- a/modules/xnet.php +++ b/modules/xnet.php @@ -45,7 +45,7 @@ class XnetModule extends PLModule } // Retrieve the photo and its mime type. - $photo = $profile->getPhoto(true); + $photo = $profile->getPhoto(true, true); // Display the photo, or a default one when not available. $photo->send(); @@ -117,7 +117,7 @@ class XnetModule extends PLModule XDB::execute('INSERT INTO groups (id, diminutif) VALUES (NULL, {?})', Post::v('diminutif')); - pl_redirect('../' . Post::v('diminutif') . '/edit'); + pl_redirect(Post::v('diminutif') . '/edit'); } else { $page->trigError('Le diminutif demandé est déjà pris.'); }