aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ratings.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
committerredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
commit9abd95fad3784a10fc48bc40f9b8a75d7d74edda (patch)
tree3cf2eec6a29f384b80a8c607aa97172b84e37e62 /mod/ratings.php
parent256c228efd249f2ce93405db8e36f52030aa4876 (diff)
downloadvolse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.gz
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.bz2
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.zip
static App
Diffstat (limited to 'mod/ratings.php')
-rw-r--r--mod/ratings.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/ratings.php b/mod/ratings.php
index dc98eb238..d99be974c 100644
--- a/mod/ratings.php
+++ b/mod/ratings.php
@@ -49,23 +49,23 @@ function ratings_init(&$a) {
}
if(array_key_exists('xchan_hash',$results['target']))
- $a->poi = $results['target'];
+ App::$poi = $results['target'];
$friends = array();
$others = array();
if($results['ratings']) {
foreach($results['ratings'] as $n) {
- if(is_array($a->contacts) && array_key_exists($n['xchan_hash'],$a->contacts))
+ if(is_array(App::$contacts) && array_key_exists($n['xchan_hash'],App::$contacts))
$friends[] = $n;
else
$others[] = $n;
}
}
- $a->data = array('target' => $results['target'], 'results' => array_merge($friends,$others));
+ App::$data = array('target' => $results['target'], 'results' => array_merge($friends,$others));
- if(! $a->data['results']) {
+ if(! App::$data['results']) {
notice( t('No ratings') . EOL);
}
@@ -91,8 +91,8 @@ function ratings_content(&$a) {
if(! $poco_rating)
return;
- $site_target = ((array_key_exists('target',$a->data) && array_key_exists('site_url',$a->data['target'])) ?
- '<a href="' . $a->data['target']['site_url'] . '" >' . $a->data['target']['site_url'] . '</a>' : '');
+ $site_target = ((array_key_exists('target',App::$data) && array_key_exists('site_url',App::$data['target'])) ?
+ '<a href="' . App::$data['target']['site_url'] . '" >' . App::$data['target']['site_url'] . '</a>' : '');
$o = replace_macros(get_markup_template('prep.tpl'),array(
@@ -101,7 +101,7 @@ function ratings_content(&$a) {
'$website' => t('Website: '),
'$site' => $site_target,
'$rating_text_lbl' => t('Description: '),
- '$raters' => $a->data['results']
+ '$raters' => App::$data['results']
));
return $o;