X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fmedals.inc.php;h=0bc892c6468909c8d087b1df72f484617d2a3ae8;hb=2553b7686e0678b8e27858a7c377e73ecb410aec;hp=98d14d24e61a9a5c25cdbbd1da4d86b20da87966;hpb=a7c29df3b9bf8f3c3b23fec0f1d2feb814cb61fe;p=platal.git diff --git a/include/validations/medals.inc.php b/include/validations/medals.inc.php index 98d14d2..0bc892c 100644 --- a/include/validations/medals.inc.php +++ b/include/validations/medals.inc.php @@ -1,6 +1,6 @@ mid = $_idmedal; + parent::__construct($_user, false, 'medal', $_stamp); + $this->mid = $_idmedal; $this->gid = $_subidmedal; } @@ -101,10 +101,10 @@ class MedalReq extends Validate public function commit () { require_once 'notifs.inc.php'; - register_watch_op($this->uid, WATCH_FICHE, 'medals'); + register_watch_op($this->user->id(), WATCH_FICHE, '', 'medals'); return XDB::execute('REPLACE INTO profile_medals_sub VALUES ({?}, {?}, {?})', - $this->uid, $this->mid, $this->gid); + $this->user->id(), $this->mid, $this->gid); } // }}}