projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kill ugly symlinks from banana sources to include/banana.
[platal.git]
/
include
/
validations
/
photos.inc.php
diff --git
a/include/validations/photos.inc.php
b/include/validations/photos.inc.php
index
cc1631a
..
f78607d
100644
(file)
--- a/
include/validations/photos.inc.php
+++ b/
include/validations/photos.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-137,11
+137,10
@@
class PhotoReq extends Validate
public function commit()
{
public function commit()
{
- require_once 'notifs.inc.php';
- XDB::execute('REPLACE INTO photo (uid, attachmime, attach, x, y)
+ XDB::execute('REPLACE INTO profile_photos (pid, attachmime, attach, x, y)
VALUES ({?},{?},{?},{?},{?})',
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);
+
return true;
}
return true;
}