diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-12-19 18:04:04 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-12-19 18:04:04 +0100 |
commit | 2a3f94e4521f00142b99ba4fa5f4ec093159cbb7 (patch) | |
tree | 35dc0c015976fbba09d48b48c6dd1850be3bff53 /mod/match.php | |
parent | c3d12bc77ea3af6adc72f078d06bb9b199af6b45 (diff) | |
parent | 177af1fc9d286c4ecc7e5ce43e17f492b9e11817 (diff) | |
download | volse-hubzilla-2a3f94e4521f00142b99ba4fa5f4ec093159cbb7.tar.gz volse-hubzilla-2a3f94e4521f00142b99ba4fa5f4ec093159cbb7.tar.bz2 volse-hubzilla-2a3f94e4521f00142b99ba4fa5f4ec093159cbb7.zip |
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'mod/match.php')
-rw-r--r-- | mod/match.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/match.php b/mod/match.php index c33bbd5c2..3645a419d 100644 --- a/mod/match.php +++ b/mod/match.php @@ -7,6 +7,8 @@ function match_content(&$a) { if(! local_user()) return; + $_SESSION['return_url'] = $a->get_baseurl() . '/' . $a->cmd; + $o .= '<h2>' . t('Profile Match') . '</h2>'; $r = q("SELECT `pub_keywords`, `prv_keywords` FROM `profile` WHERE `is-default` = 1 AND `uid` = %d LIMIT 1", @@ -41,14 +43,20 @@ function match_content(&$a) { } if(count($j->results)) { + + $tpl = get_markup_template('match.tpl'); foreach($j->results as $jj) { + $connlnk = $a->get_baseurl() . '/follow/?url=' . $jj->url; $o .= replace_macros($tpl,array( '$url' => $jj->url, '$name' => $jj->name, '$photo' => $jj->photo, + '$inttxt' => ' ' . t('is interested in:'), + '$conntxt' => t('Connect'), + '$connlnk' => $connlnk, '$tags' => $jj->tags )); } |