X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fforums.php;h=c34b22cb2e76d2cee3effa5a263c7f4dee6674e8;hb=28c20b86be8b40cecba0d83080879f81c49e07ad;hp=2999659820063dc9b88dbd70bda3bab91e84143a;hpb=f3e66b56841342aaade4d77559e842571ad245de;p=platal.git diff --git a/modules/forums.php b/modules/forums.php index 2999659..c34b22c 100644 --- a/modules/forums.php +++ b/modules/forums.php @@ -1,6 +1,6 @@ $this->make_hook('banana', AUTH_COOKIE), - 'banana/rss' => $this->make_hook('rss', AUTH_PUBLIC, 'user', NO_HTTPS), - 'admin/forums' => $this->make_hook('forums_bans', AUTH_MDP, 'admin'), + 'banana' => $this->make_hook('banana', AUTH_COOKIE), + 'banana/rss' => $this->make_hook('rss', AUTH_PUBLIC, 'user', NO_HTTPS), + 'admin/forums' => $this->make_hook('forums_bans', AUTH_MDP, 'admin'), ); } @@ -67,7 +67,7 @@ class ForumsModule extends PLModule { $page->setTitle('Administration - Bannissements des forums'); $page->assign('title', 'Gestion des mises au ban'); - $table_editor = new PLTableEditor('admin/forums','forums.innd','id_innd'); + $table_editor = new PLTableEditor('admin/forums','forum_innd','id_innd'); $table_editor->add_sort_field('priority', true, true); $table_editor->describe('read_perm','lecture',true); $table_editor->describe('write_perm','écriture',true); @@ -75,7 +75,6 @@ class ForumsModule extends PLModule $table_editor->describe('comment','commentaire',true); $table_editor->apply($page, $action, $id); $page->changeTpl('forums/admin.tpl'); - $page->addJsLink('jquery.js'); } static function run_banana(&$page, $params = null)