bug corrigé: les tags fonctionnaient mal en mode public
This commit is contained in:
parent
a358608af3
commit
553f6cb3a1
1 changed files with 4 additions and 3 deletions
|
@ -96,14 +96,15 @@ function tagcloud(){
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($array as $tag=>$val){
|
foreach ($array as $tag=>$val){
|
||||||
echo '<a class="tag_'.$val['status'].'" href="'.$GLOBAL['respawn_url'].'?tag='.$tag.'">'.$tag.' <em>'.$val['nb'].'</em></a>';
|
echo '<a class="tag_'.$val['status'].'" href="'.$GLOBAL['respawn_url'].'?'.$val['status'].'&tag='.$tag.'">'.$tag.' <em>'.$val['nb'].'</em></a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function tag2links($tagstring){
|
function tag2links($tagstring){
|
||||||
global $GLOBAL;
|
global $GLOBAL;
|
||||||
$array=explode(' ',$tagstring);$links='';
|
$array=explode(' ',$tagstring);$links='';$public='';
|
||||||
|
if ($GLOBAL['public']){$public='&public';}
|
||||||
foreach ($array as $tag){
|
foreach ($array as $tag){
|
||||||
$links.='<a href="'.$GLOBAL['respawn_url'].'?tag='.$tag.'" class="tag">'.$tag.'</a>';
|
$links.='<a href="'.$GLOBAL['respawn_url'].'?tag='.$tag.$public.'" class="tag">'.$tag.'</a>';
|
||||||
}
|
}
|
||||||
return $links;
|
return $links;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue