<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
public function commit()
{
- require_once 'notifs.inc.php';
- XDB::execute('REPLACE INTO photo (uid, attachmime, attach, x, y)
+ //require_once 'notifs.inc.php';
+ XDB::execute('REPLACE INTO profile_photos (pid, 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');
+ $this->user->profile()->id(), $this->mimetype, $this->data, $this->x, $this->y);
+ //register_watch_op($this->user->id(), WATCH_FICHE, '', 'photo');
return true;
}