aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-09 15:49:51 -0700
committerFriendika <info@friendika.com>2011-10-09 15:49:51 -0700
commit9f4d3bf5672af34d7b12a7d95da912205f3b9789 (patch)
tree0a8746c2bb76521ba1919abe225fc46d453ec796 /boot.php
parent0e401b5ad85ff8be41a3cfc4a9d7936da56ba157 (diff)
downloadvolse-hubzilla-9f4d3bf5672af34d7b12a7d95da912205f3b9789.tar.gz
volse-hubzilla-9f4d3bf5672af34d7b12a7d95da912205f3b9789.tar.bz2
volse-hubzilla-9f4d3bf5672af34d7b12a7d95da912205f3b9789.zip
add first,last to D* vcard
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index b53dfb531..c8ec84681 100644
--- a/boot.php
+++ b/boot.php
@@ -8,7 +8,7 @@ require_once("include/pgettext.php");
require_once('include/nav.php');
define ( 'FRIENDIKA_PLATFORM', 'Free Friendika');
-define ( 'FRIENDIKA_VERSION', '2.3.1128' );
+define ( 'FRIENDIKA_VERSION', '2.3.1129' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1094 );
@@ -920,11 +920,17 @@ function profile_sidebar($profile, $block = 0) {
$location = $pdesc = $connect = $gender = $marital = $homepage = False;
}
+ $firstname = ((strpos($profile['name'],' '))
+ ? trim(substr($profile['name'],0,strpos($profile['name'],' '))) : $profile['name']);
+ $lastname = (($firstname === $profile['name']) ? '' : trim(substr($profile['name'],strlen($firstname))));
+
$diaspora = array(
'podloc' => $a->get_baseurl(),
'searchable' => (($profile['publish'] && $profile['net-publish']) ? 'true' : 'false' ),
'nickname ' => $profile['nickname'],
'fullname' => $profile['name'],
+ 'firstname' => $firstname,
+ 'lastname' => $lastname,
'photo300' => $a->get_baseurl() . '/photo/custom/300/' . $profile['uid'] . '.jpg',
'photo100' => $a->get_baseurl() . '/photo/custom/100/' . $profile['uid'] . '.jpg',
'photo50' => $a->get_baseurl() . '/photo/custom/50/' . $profile['uid'] . '.jpg',