$content = $tidy->value;
// flattr checking
- $flattr = new FlattrItem();
- $flattr->checkitem($entry['url']);
+ $flattr = new FlattrItem();
+ $flattr->checkitem($entry['url']);
- $tpl_vars = array(
+ $tpl_vars = array(
'entry' => $entry,
'content' => $content,
- 'flattr' => $flattr,
- );
+ 'flattr' => $flattr
+ );
+ }
}
else {
Tools::logm('error in view call : entry is null');
}
break;
- default: # home, favorites and archive views
+ default : // home, favorites and archive views
$entries = $this->store->getEntriesByView($view, $this->user->getId());
$tpl_vars = array(
'entries' => '',
public function checkitem($urltoflattr){
$this->cacheflattrfile($urltoflattr);
$flattrResponse = file_get_contents("cache/flattr/".base64_encode($urltoflattr).".cache");
- var_dump($flattrResponse);
if($flattrResponse != FALSE){
$result = json_decode($flattrResponse);
if (isset($result->message)){
elseif ($result->link) {
$this->status = "flattred";
$this->flattrItemURL = $result->link;
- $this->numflattrs = $result->flattrs_user_count;
+ $this->numflattrs = $result->flattrs;
}
else{
$this->status = "not flattrable";