[SPIP] ~version 3.0.7-->3.0.10
[ptitvelo/web/www.git] / www / ecrire / inc / actions.php
index 717f8c8..dabed25 100644 (file)
@@ -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