// }}}
// {{{ constructor
- public function __construct(User $_user, PlUpload &$upload, $_stamp=0)
+ public function __construct(User &$_user, PlUpload &$upload, $_stamp=0)
{
parent::__construct($_user, true, 'photo', $_stamp);
$this->read($upload);
XDB::execute('REPLACE INTO photo (uid, attachmime, attach, x, y)
VALUES ({?},{?},{?},{?},{?})',
$this->user->id(), $this->mimetype, $this->data, $this->x, $this->y);
- register_watch_op($this->user->id(), WATCH_FICHE, 'photo');
+ register_watch_op($this->user->id(), WATCH_FICHE, '', 'photo');
return true;
}