X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fecrire%2Finc%2Factions.php;h=dabed251f0821c3fe775c5ad255aa6b03d869753;hb=f489d45ae677afde12ba9c9f70f463ea34787b45;hp=717f8c84fdb8ae4f2d92fcd6f40462072d279db6;hpb=52cf8ed924d5dcd0c28dde4b6c3196be6ec2d4f7;p=ptitvelo%2Fweb%2Fwww.git diff --git a/www/ecrire/inc/actions.php b/www/ecrire/inc/actions.php index 717f8c8..dabed25 100644 --- a/www/ecrire/inc/actions.php +++ b/www/ecrire/inc/actions.php @@ -36,11 +36,11 @@ function generer_action_auteur($action, $arg, $redirect = "", $mode = false, $at } // http://doc.spip.org/@redirige_action_auteur -function redirige_action_auteur($action, $arg, $ret, $gra = '', $mode = false, $atts = ''){ +function redirige_action_auteur($action, $arg, $ret, $gra = '', $mode = false, $atts = '', $public = false) { - $r = _DIR_RESTREINT.generer_url_ecrire($ret, $gra, true, true); + $r = ($public ? _DIR_RESTREINT_ABS : _DIR_RESTREINT) .generer_url_ecrire($ret, $gra, true, $public); - return generer_action_auteur($action, $arg, $r, $mode, $atts); + return generer_action_auteur($action, $arg, $r, $mode, $atts, $public); } // http://doc.spip.org/@redirige_action_post