From ef071632a795f365f26cd0587bef558121bedd2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 9 Apr 2010 18:26:36 +0200 Subject: [PATCH] Removes calls to register_watch_op. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/validations/medals.inc.php | 2 -- include/validations/names.inc.php | 2 -- include/validations/photos.inc.php | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) 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; } -- 2.1.4