aboutsummaryrefslogtreecommitdiffstats
path: root/include/enotify.php
diff options
context:
space:
mode:
authorChristian Vogeley <christian.vogeley@hotmail.de>2014-03-09 04:15:11 +0100
committerChristian Vogeley <christian.vogeley@hotmail.de>2014-03-09 04:15:11 +0100
commit76ab9403af3b562531a7eb0831e5a7ecc9aedb38 (patch)
treec4d74f0cc8aac0fcd5a52520170a64c8d4b01395 /include/enotify.php
parente8e980c8175be6dae7d642d9707493c465b7137b (diff)
parent80e381176e1e301782bc56cbb7c6037825eddf2d (diff)
downloadvolse-hubzilla-76ab9403af3b562531a7eb0831e5a7ecc9aedb38.tar.gz
volse-hubzilla-76ab9403af3b562531a7eb0831e5a7ecc9aedb38.tar.bz2
volse-hubzilla-76ab9403af3b562531a7eb0831e5a7ecc9aedb38.zip
merge
Diffstat (limited to 'include/enotify.php')
-rw-r--r--include/enotify.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php
index e0991257f..036d5275e 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -384,6 +384,12 @@ function notification($params) {
$itemlink = $a->get_baseurl() . '/notify/view/' . $notify_id;
$msg = str_replace('$itemlink',$itemlink,$epreamble);
+
+ // wretched hack, but we don't want to duplicate all the preamble variations and we also don't want to screw up a translation
+
+ if(($a->language === 'en' || (! $a->language)) && strpos($msg,', '))
+ $msg = substr($msg,strpos($msg,', ')+1);
+
$r = q("update notify set msg = '%s' where id = %d and uid = %d limit 1",
dbesc($msg),
intval($notify_id),