X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fxnet.php;h=dbaa8a3605a9d285bd031cc1a2772f5d7c5ba1b5;hb=aabb817adfe803f869cf01ebede47cceb005544d;hp=9ad297aa5e8002b99f1433e79913a213c4f6e462;hpb=34465ab035104f739a54ec62660f04f874448627;p=platal.git diff --git a/modules/xnet.php b/modules/xnet.php index 9ad297a..dbaa8a3 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.'); } @@ -187,7 +187,7 @@ class XnetModule extends PLModule $page->assign('cat', $cat); $page->assign('dom', $dom); - $res = XDB::query("SELECT id,nom + $res = XDB::query("SELECT id,nom FROM group_dom WHERE FIND_IN_SET({?}, cat) ORDER BY nom", $cat);