Commit 502a8151 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Add site info to async feature

parent e63f0a4f
......@@ -7111,7 +7111,15 @@ class Layout
$f_array = array('xname'=>"feature",'id'=>$params['id_feature'],'name'=>$feature['name'],'id_user'=>$feature['id_user'],'id_function'=>$feature['id_function'],'function'=>$functions[$feature['id_function']],'params'=>$feature_params,'info'=>($this->pt->ft->info),'type'=>($this->pt->ft->item_type),'items'=>$items,'description'=>$feature['description']);
$random['item'] = $f_array;
$this->item_type = "feature";
break;
if($params['common']) {
if(isset($this->cache_common)) {
$common = $this->cache_common;
} else {
$common = $this->Common(0,$this->id_type);
}
$random = array_merge($common,$random);
}
break;
case "quote":
include_once(SERVER_ROOT."/../classes/quotes.php");
$q = new quotes;
......
......@@ -55,6 +55,7 @@ if($id_feature>0)
$params['subtype'] = "feature";
$params['id_feature'] = $id_feature;
$params['feature'] = $feature;
$params['common'] = true;
$html = $l->Output("random_item",0,$id_topic,1,$params);
echo $html;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment