aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-08 02:49:08 -0800
committerfriendica <info@friendica.com>2013-01-08 02:49:08 -0800
commitba20913c2b1fde5fdc9a25e5efa0c1d3a55d74c4 (patch)
tree2eb7b84c8ab85ba00e0f0ff1055f14d56e4ddfd5 /include
parent7f6e1144f659c94f19881899db0d4b891690b759 (diff)
downloadvolse-hubzilla-ba20913c2b1fde5fdc9a25e5efa0c1d3a55d74c4.tar.gz
volse-hubzilla-ba20913c2b1fde5fdc9a25e5efa0c1d3a55d74c4.tar.bz2
volse-hubzilla-ba20913c2b1fde5fdc9a25e5efa0c1d3a55d74c4.zip
lots of notification tweaks
Diffstat (limited to 'include')
-rw-r--r--include/enotify.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/enotify.php b/include/enotify.php
index 140baf104..0e83adf08 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -324,11 +324,11 @@ function notification($params) {
}
$itemlink = $a->get_baseurl() . '/notify/view/' . $notify_id;
- $msg = replace_macros($epreamble,array('$itemlink' => $itemlink));
+ $msg = str_replace('$itemlink',$itemlink,$epreamble);
$r = q("update notify set msg = '%s' where id = %d and uid = %d limit 1",
dbesc($msg),
intval($notify_id),
- intval($params['uid'])
+ intval($datarray['uid'])
);
@@ -345,7 +345,7 @@ function notification($params) {
$r = q("select `id` from `notify-threads` where `master-parent-item` = %d and `receiver-uid` = %d limit 1",
intval($params['parent']),
- intval($params['uid']) );
+ intval($datarray['uid']) );
// If so, create the record of it and use a message-id smtp header.