- else{
- $flux['data'] = ($disponible['404'] = z_contenu_disponible($prefix_path.$prepend,$z_contenu,'404',$ext,$echafauder));
+ if (is_string($disponible[$type])) {
+ $flux['data'] = $disponible[$type];
+ } elseif ($echafauder
+ and include_spip('inc/autoriser')
+ and isset($GLOBALS['visiteur_session']['statut']) // performance
+ and autoriser('echafauder', $type)
+ and $is = $disponible[$type]
+ and is_array($is)
+ ) {
+ $flux['data'] = $echafauder($type, $is[0], $is[1], $is[2], $ext);
+ } else {
+ $flux['data'] = ($disponible['404'] = z_contenu_disponible($prefix_path . $prepend, $z_contenu, '404', $ext,
+ $echafauder));