From: Stéphane Jacob Date: Fri, 9 Apr 2010 16:26:36 +0000 (+0200) Subject: Removes calls to register_watch_op. X-Git-Tag: xorg/1.0.0~314 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ef071632a795f365f26cd0587bef558121bedd2b;p=platal.git Removes calls to register_watch_op. Signed-off-by: Stéphane Jacob --- diff --git a/include/validations/medals.inc.php b/include/validations/medals.inc.php index 46bf272..16f5b99 100644 --- a/include/validations/medals.inc.php +++ b/include/validations/medals.inc.php @@ -103,8 +103,6 @@ class MedalReq extends Validate public function commit () { - require_once 'notifs.inc.php'; - register_watch_op($this->user->id(), WATCH_FICHE, '', 'medals'); return XDB::execute('REPLACE INTO profile_medals VALUES ({?}, {?}, {?})', $this->user->profile()->id(), $this->mid, diff --git a/include/validations/names.inc.php b/include/validations/names.inc.php index d891e59..41ee0f1 100644 --- a/include/validations/names.inc.php +++ b/include/validations/names.inc.php @@ -122,10 +122,8 @@ class NamesReq extends Validate public function commit() { - require_once 'notifs.inc.php'; require_once 'name.func.inc.php'; - register_watch_op($this->user->id(), WATCH_FICHE, '', 'search_names'); set_profile_display($this->display_names); set_alias_names($this->sn_new, $this->sn_old, true, $this->new_alias); diff --git a/include/validations/photos.inc.php b/include/validations/photos.inc.php index 1aac216..f78607d 100644 --- a/include/validations/photos.inc.php +++ b/include/validations/photos.inc.php @@ -137,11 +137,10 @@ class PhotoReq extends Validate public function commit() { - //require_once 'notifs.inc.php'; XDB::execute('REPLACE INTO profile_photos (pid, attachmime, attach, x, y) VALUES ({?},{?},{?},{?},{?})', $this->user->profile()->id(), $this->mimetype, $this->data, $this->x, $this->y); - //register_watch_op($this->user->id(), WATCH_FICHE, '', 'photo'); + return true; }