<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
'plan' => $this->make_hook('plan', AUTH_PUBLIC),
'photo' => $this->make_hook('photo', AUTH_MDP),
'autologin' => $this->make_hook('autologin', AUTH_MDP),
+
+ 'Xnet' => $this->make_wiki_hook(),
);
}
}
// 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();
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.');
}
$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);