projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wiki selection is done by the Platal class.
[platal.git]
/
include
/
notifs.inc.php
diff --git
a/include/notifs.inc.php
b/include/notifs.inc.php
index
cda21a1
..
fd952cb
100644
(file)
--- a/
include/notifs.inc.php
+++ b/
include/notifs.inc.php
@@
-69,7
+69,7
@@
class WatchProfileUpdate extends WatchOperation
public static function register(Profile &$profile, $field)
{
public static function register(Profile &$profile, $field)
{
- XDB::execute('REPLACE INTO watch_profile (
u
id, ts, field)
+ XDB::execute('REPLACE INTO watch_profile (
p
id, ts, field)
VALUES ({?}, NOW(), {?})',
$profile->id(), $field);
}
VALUES ({?}, NOW(), {?})',
$profile->id(), $field);
}
@@
-109,11
+109,11
@@
class WatchProfileUpdate extends WatchOperation
'photo' => 'Sa photographie');
public function getData(PlUser &$user)
{
'photo' => 'Sa photographie');
public function getData(PlUser &$user)
{
- $data = XDB::fetchColumn(
'
SELECT field
+ $data = XDB::fetchColumn(
"
SELECT field
FROM watch_profile
FROM watch_profile
- WHERE
uid = {?} AND ts > FROM_UNIXTIME({?}) AND field != \'\
'
- ORDER BY ts
'
,
- $user->id(), $this->date);
+ WHERE
pid = {?} AND ts > FROM_UNIXTIME({?}) AND field != '
'
+ ORDER BY ts
"
,
+ $user->
profile()->
id(), $this->date);
if (count($data) == 0) {
return null;
} else {
if (count($data) == 0) {
return null;
} else {
@@
-257,7
+257,8
@@
class Watch
if (count($users) == 0) {
return null;
} else {
if (count($users) == 0) {
return null;
} else {
- return array('operation' => $obj,
+ return array('type' => $obj->flag,
+ 'operation' => $obj,
'title' => $obj->getTitle(count($users)),
'users' => $users);
}
'title' => $obj->getTitle(count($users)),
'users' => $users);
}