diff options
author | Friendika <info@friendika.com> | 2011-01-18 19:25:28 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-01-18 19:25:28 -0800 |
commit | b40281802ffce0b977cb0b1c4d02902ecf82e753 (patch) | |
tree | 512b05743036a083b68cce77e64b69475bc66a5d /mod/directory.php | |
parent | 028460a5c1de4833bb1dcfaa945c1292952bf923 (diff) | |
download | volse-hubzilla-b40281802ffce0b977cb0b1c4d02902ecf82e753.tar.gz volse-hubzilla-b40281802ffce0b977cb0b1c4d02902ecf82e753.tar.bz2 volse-hubzilla-b40281802ffce0b977cb0b1c4d02902ecf82e753.zip |
personal title
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php index f70cd6df8..0504ac321 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -40,7 +40,7 @@ function directory_content(&$a) { if($search) $search = dbesc($search); - $sql_extra = ((strlen($search)) ? " AND MATCH (`profile`.`name`, `user`.`nickname`, `locality`,`region`,`country-name`,`gender`,`marital`,`sexual`,`about`,`romance`,`work`,`education`,`keywords` ) AGAINST ('$search' IN BOOLEAN MODE) " : ""); + $sql_extra = ((strlen($search)) ? " AND MATCH (`profile`.`name`, `user`.`nickname`, `pdesc`, `locality`,`region`,`country-name`,`gender`,`marital`,`sexual`,`about`,`romance`,`work`,`education`,`keywords` ) AGAINST ('$search' IN BOOLEAN MODE) " : ""); $publish = ((get_config('system','publish_all')) ? '' : " AND `publish` = 1 " ); @@ -68,6 +68,9 @@ function directory_content(&$a) { $profile_link = $a->get_baseurl() . '/profile/' . ((strlen($rr['nickname'])) ? $rr['nickname'] : $rr['profile_uid']); + + $pdesc = (($rr['pdesc']) ? $rr['pdesc'] . '<br />' : ''); + $details = ''; if(strlen($rr['locality'])) $details .= $rr['locality']; @@ -94,7 +97,7 @@ function directory_content(&$a) { '$photo' => $rr[$photo], '$alt-text' => $rr['name'], '$name' => $rr['name'], - '$details' => $details + '$details' => $pdesc . $details )); |