X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fmedals.inc.php;h=98d14d24e61a9a5c25cdbbd1da4d86b20da87966;hb=d56cb887a972f39263f93a671479672733db63bb;hp=7e65dc5cee7be8653c95f3e9d226d93576970de6;hpb=85cc366b075d06f805c16ac3df82acabdedcef3d;p=platal.git diff --git a/include/validations/medals.inc.php b/include/validations/medals.inc.php index 7e65dc5..98d14d2 100644 --- a/include/validations/medals.inc.php +++ b/include/validations/medals.inc.php @@ -1,6 +1,6 @@ uid, $this->mid, $this->gid); + require_once 'notifs.inc.php'; + register_watch_op($this->uid, WATCH_FICHE, 'medals'); + return XDB::execute('REPLACE INTO profile_medals_sub + VALUES ({?}, {?}, {?})', + $this->uid, $this->mid, $this->gid); } // }}}