diff --git a/ecrire/action/instituer_rubrique_breves.php b/ecrire/action/instituer_rubrique_breves.php index 7d36e57bf065e7475672688020d8f8d2fea2c0fb..dbc7749245d3e97654238466a1a70d33408d116c 100644 --- a/ecrire/action/instituer_rubrique_breves.php +++ b/ecrire/action/instituer_rubrique_breves.php @@ -29,7 +29,7 @@ function action_instituer_rubrique_breves_dist() { $voss = spip_query("SELECT $key AS id FROM spip_$table WHERE id_rubrique=$id AND (statut = 'publie' OR statut = 'prop')"); while($row = spip_fetch_array($voss)) { - set_request('statut', $statut); + set_request('statut', $statut); revisions_breves($row['id']); } diff --git a/ecrire/exec/meme_rubrique.php b/ecrire/exec/meme_rubrique.php index 79e018c5ecd4b7dbc18c298dcce26809adfed4a5..4571e71cc5ef83483c15c0caa293f7a66e6327a7 100644 --- a/ecrire/exec/meme_rubrique.php +++ b/ecrire/exec/meme_rubrique.php @@ -24,7 +24,7 @@ function exec_meme_rubrique_dist() if (($GLOBALS['auteur_session']['statut'] != '0minirezo') OR (!acces_rubrique($id)) OR (!preg_match('/^[\w_-]+$/',$date)) - OR (!preg_match('/^[\w_-]+$/',$type))) { + OR (!preg_match('/^[\w_-]+$/',$type))) { include_spip('inc/minipres'); echo minipres(); exit;