X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile.php;h=61d1596b0bec2c58e90115a45986140cc1887fe0;hb=853ff307303faf861396c4e22dbaa56114366751;hp=473db306bae0be009223046f7cb2696972043c6e;hpb=0c54d458de4782d691b9bcdeac872982c1027231;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index 473db30..61d1596 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -76,7 +76,9 @@ class ProfileModule extends PLModule ); } - /* XXX COMPAT */ + /* Function needed for compatibility reasons. + * TODO: removes calls to fiche.php?user=blah.machin.2083 and then removes this. + */ function handler_fiche(&$page) { return $this->handler_profile($page, Env::v('user')); @@ -753,7 +755,7 @@ class ProfileModule extends PLModule function handler_admin_education_degree(&$page, $action = 'list', $id = null) { $page->setTitle('Administration - Niveau de formation'); $page->assign('title', 'Gestion des niveau de formation'); - $table_editor = new PLTableEditor('admin/education_degree', 'profile_education_degree_enum', 'id', true); + $table_editor = new PLTableEditor('admin/education_degree', 'profile_education_degree_enum', 'id'); $table_editor->add_join_table('profile_education_degree', 'degreeid', true); $table_editor->add_join_table('profile_education', 'degreeid', true); $table_editor->describe('degree', 'niveau', true);