|
|
|
@ -31,9 +31,10 @@ function autoriser_statsrepartition_onglet_dist($faire, $type, $id, $qui, $opt)
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function autoriser_statslang_onglet_dist($faire, $type, $id, $qui, $opt) { |
|
|
|
|
return ($GLOBALS['meta']['multi_articles'] == 'oui' |
|
|
|
|
OR $GLOBALS['meta']['multi_rubriques'] == 'oui') |
|
|
|
|
AND autoriser('voirstats', $type, $id, $qui, $opt); |
|
|
|
|
$objets = explode(',', $GLOBALS['meta']['multi_objets']); |
|
|
|
|
return (in_array('spip_articles', $objets) |
|
|
|
|
OR in_array('spip_rubriques', $objets)) |
|
|
|
|
AND autoriser('voirstats', $type, $id, $qui, $opt); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function autoriser_statsreferers_onglet_dist($faire, $type, $id, $qui, $opt) { |
|
|
|
|