diff options
author | friendica <info@friendica.com> | 2015-02-02 23:58:44 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-02 23:58:44 -0800 |
commit | 6067274b51cfec0d14ad4a68675d07a2e6a39387 (patch) | |
tree | c704b86ccd7951bc6349d6d0c9b45533776f50a6 /mod/directory.php | |
parent | 77379029f566fc759651fdaa01f5bfaf2ad9db28 (diff) | |
download | volse-hubzilla-6067274b51cfec0d14ad4a68675d07a2e6a39387.tar.gz volse-hubzilla-6067274b51cfec0d14ad4a68675d07a2e6a39387.tar.bz2 volse-hubzilla-6067274b51cfec0d14ad4a68675d07a2e6a39387.zip |
start to tie ratings to the directory page
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php index 21940d57b..7f9283ba4 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -190,6 +190,9 @@ function directory_content(&$a) { $page_type = ''; + if($rr['total_ratings']) + $total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']); + $profile = $rr; if ((x($profile,'locale') == 1) @@ -255,6 +258,7 @@ function directory_content(&$a) { 'nickname' => substr($rr['address'],0,strpos($rr['address'],'@')), 'location' => $location, 'gender' => $gender, + 'total_ratings' => $total_ratings, 'pdesc' => $pdesc, 'marital' => $marital, 'homepage' => $homepage, |