aboutsummaryrefslogtreecommitdiffstats
path: root/include/enotify.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-25 20:36:56 -0800
committerfriendica <info@friendica.com>2014-02-25 20:36:56 -0800
commit1857036a994a5470aaece799d3bf07fbc863a91f (patch)
tree3e622a38aaaa1435ce7a3d41b21216ba1decd86c /include/enotify.php
parent3fb26e06ab98d9eceb1450dbb519225203ed36ef (diff)
downloadvolse-hubzilla-1857036a994a5470aaece799d3bf07fbc863a91f.tar.gz
volse-hubzilla-1857036a994a5470aaece799d3bf07fbc863a91f.tar.bz2
volse-hubzilla-1857036a994a5470aaece799d3bf07fbc863a91f.zip
I'll have to fix this someday.
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),