X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnet.php;h=dbaa8a3605a9d285bd031cc1a2772f5d7c5ba1b5;hb=c67b874fd8d442bfded35295a819e7ce11a2d6dc;hp=9ad297aa5e8002b99f1433e79913a213c4f6e462;hpb=0073747ac81cc9cff9e43847eb008f0e815255f0;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);