X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fphotos.inc.php;h=2a2fec755f73e20b463e9691276631fbc3f3b59c;hb=e0ee31204dbb8e43870716190e4549257416fcb8;hp=7ed7d1e72bb9dfd7114599be1b1d06879cafd927;hpb=f3df6d384c72871c814d607cd9122eba03666543;p=platal.git diff --git a/include/validations/photos.inc.php b/include/validations/photos.inc.php index 7ed7d1e..2a2fec7 100644 --- a/include/validations/photos.inc.php +++ b/include/validations/photos.inc.php @@ -1,6 +1,6 @@ read($upload); } @@ -76,7 +76,7 @@ class PhotoReq extends Validate static public function get_request($uid) { - return parent::get_typed_request($uid,'photo'); + return parent::get_typed_request($uid, 'photo'); } // }}} @@ -140,8 +140,8 @@ class PhotoReq extends Validate require_once 'notifs.inc.php'; 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'); + $this->user->id(), $this->mimetype, $this->data, $this->x, $this->y); + register_watch_op($this->user->id(), WATCH_FICHE, '', 'photo'); return true; }