diff options
author | friendica <info@friendica.com> | 2012-06-25 21:37:38 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-25 21:37:38 -0700 |
commit | 78ede4744ff17c564f7104731c152672138f3efb (patch) | |
tree | ac49be38166db21fe52cd06384d50047349a08d8 /include/items.php | |
parent | 0f0ffce1b652897663ec5a8bea9a5c6a4fd37b0d (diff) | |
download | volse-hubzilla-78ede4744ff17c564f7104731c152672138f3efb.tar.gz volse-hubzilla-78ede4744ff17c564f7104731c152672138f3efb.tar.bz2 volse-hubzilla-78ede4744ff17c564f7104731c152672138f3efb.zip |
add event titles to discovered birthday events
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index e19d729ba..a4faf3adc 100755 --- a/include/items.php +++ b/include/items.php @@ -1457,11 +1457,12 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0) * */ - $bdtext = t('Birthday:') . ' [url=' . $contact['url'] . ']' . $contact['name'] . '[/url]' ; + $bdtext = sprintf( t('%s\'s birthday'), $contact['name']); + $bdtext2 = sprintf( t('Happy Birthday %s'), ' [url=' . $contact['url'] . ']' . $contact['name'] . '[/url]' ; - $r = q("INSERT INTO `event` (`uid`,`cid`,`created`,`edited`,`start`,`finish`,`desc`,`type`) - VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s' ) ", + $r = q("INSERT INTO `event` (`uid`,`cid`,`created`,`edited`,`start`,`finish`,`summary`,`desc`,`type`) + VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ", intval($contact['uid']), intval($contact['id']), dbesc(datetime_convert()), @@ -1469,6 +1470,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0) dbesc(datetime_convert('UTC','UTC', $birthday)), dbesc(datetime_convert('UTC','UTC', $birthday . ' + 1 day ')), dbesc($bdtext), + dbesc($bdtext2), dbesc('birthday') ); |