X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fdecos.inc.php;h=5c413163a9ba2a32def95bd854f04fa39df39e72;hb=53595c2a9d1df6993dd69217c4bd1a6a9d51bff7;hp=fa40cf9ef06dc651607b9753493f4a76bad7cc4e;hpb=4abb0fe4bcefc73a18891e9768640d8811a09acc;p=platal.git diff --git a/modules/profile/decos.inc.php b/modules/profile/decos.inc.php index fa40cf9..5c41316 100644 --- a/modules/profile/decos.inc.php +++ b/modules/profile/decos.inc.php @@ -38,7 +38,6 @@ class ProfileSettingDeco implements ProfileSetting } // Fetch not yet validated medals - require_once 'validations.inc.php'; $medals = ProfileValidate::get_typed_requests($page->pid(), 'medal'); foreach ($medals as &$medal) { $value[$medal->mid] = array('grade' => $medal->gid, @@ -53,8 +52,6 @@ class ProfileSettingDeco implements ProfileSetting public function save(ProfilePage &$page, $field, $value) { - require_once 'validations.inc.php'; - $orig =& $page->orig[$field]; // Remove old ones @@ -93,7 +90,7 @@ class ProfileSettingDeco implements ProfileSetting } } -class ProfileSettingDecos extends ProfilePage +class ProfilePageDecos extends ProfilePage { protected $pg_template = 'profile/deco.tpl';