aboutsummaryrefslogtreecommitdiffstats
path: root/mod/rate.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-16 01:17:15 -0800
committerfriendica <info@friendica.com>2015-02-16 01:17:15 -0800
commiteb3c5916d759742fa87ec00622b363d0de29b283 (patch)
tree5bbef4c99fe2137d38da6d3075cc7c6015fbdc8f /mod/rate.php
parent1c4b9199809581504ee66212f3bb434fd9773aff (diff)
downloadvolse-hubzilla-eb3c5916d759742fa87ec00622b363d0de29b283.tar.gz
volse-hubzilla-eb3c5916d759742fa87ec00622b363d0de29b283.tar.bz2
volse-hubzilla-eb3c5916d759742fa87ec00622b363d0de29b283.zip
pubsites ratings (mod/pubsites really really needs to be templatised, this was quick and dirty)
Diffstat (limited to 'mod/rate.php')
-rw-r--r--mod/rate.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/rate.php b/mod/rate.php
index 2555b36a2..a3a36b4a9 100644
--- a/mod/rate.php
+++ b/mod/rate.php
@@ -25,8 +25,10 @@ function rate_init(&$a) {
$r = q("select * from site where site_url like '%s' ",
dbesc('%' . $target)
);
- if($r)
- $a->data['site'] = strtolower($r[0]);
+ if($r) {
+ $a->data['site'] = $r[0];
+ $a->data['site']['site_url'] = strtolower($r[0]['site_url']);
+ }
}
}