Fix empty date in profile edition notification.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 29 Jul 2008 12:56:48 +0000 (14:56 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 29 Jul 2008 12:56:48 +0000 (14:56 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/validations/medals.inc.php
include/validations/nomusage.inc.php
include/validations/photos.inc.php

index 98d14d2..599ba21 100644 (file)
@@ -101,7 +101,7 @@ class MedalReq extends Validate
     public function commit ()
     {
         require_once 'notifs.inc.php';
-        register_watch_op($this->uid, WATCH_FICHE, 'medals');
+        register_watch_op($this->uid, WATCH_FICHE, '', 'medals');
         return XDB::execute('REPLACE INTO  profile_medals_sub
                                    VALUES  ({?}, {?}, {?})',
                             $this->uid, $this->mid, $this->gid);
index 952c0c1..a5ba225 100644 (file)
@@ -111,7 +111,7 @@ class UsageReq extends Validate
     public function commit()
     {
         require_once 'notifs.inc.php';
-        register_watch_op($this->uid, WATCH_FICHE, 'nom');
+        register_watch_op($this->uid, WATCH_FICHE, '', 'nom');
         require_once('user.func.inc.php');
         $this->bestalias = set_new_usage($this->uid, $this->nom_usage, $this->alias);
         return true;
index b2fc0a1..0f2d109 100644 (file)
@@ -141,7 +141,7 @@ class PhotoReq extends Validate
         XDB::execute('REPLACE INTO  photo (uid, attachmime, attach, x, y)
                             VALUES  ({?},{?},{?},{?},{?})',
                      $this->uid, $this->mimetype, $this->data, $this->x, $this->y);
-        register_watch_op($this->uid, WATCH_FICHE, 'photo');
+        register_watch_op($this->uid, WATCH_FICHE, '', 'photo');
         return true;
     }