From 53dcede27894c655cbe1abaa9149dd0bed043a8d Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 14 Mar 2011 20:19:45 -0700 Subject: [PATCH] pub_keywords -> meta keywords --- boot.php | 2 +- mod/profile.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 3328301037..92a0007e54 100644 --- a/boot.php +++ b/boot.php @@ -4,7 +4,7 @@ set_time_limit(0); define ( 'FRIENDIKA_VERSION', '2.1.918' ); define ( 'DFRN_PROTOCOL_VERSION', '2.1' ); -define ( 'DB_UPDATE_VERSION', 1041 ); +define ( 'DB_UPDATE_VERSION', 1042 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/mod/profile.php b/mod/profile.php index 5615573b95..88fc16ebb1 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -28,6 +28,11 @@ function profile_init(&$a) { $a->page['htmlhead'] .= '' . "\r\n"; } + $keywords = ((x($a->profile,'pub_keywords')) ? $a->profile['pub_keywords'] : ''); + $keywords = str_replace(array(',',' ',',,'),array(' ',',',','),$keywords); + if(strlen($keywords)) + $a->page['htmlhead'] .= '' . "\r\n" ; + $a->page['htmlhead'] .= '' . "\r\n" ; $a->page['htmlhead'] .= '' . "\r\n" ; $uri = urlencode('acct:' . $a->profile['nickname'] . '@' . $a->get_hostname() . (($a->path) ? '/' . $a->path : ''));