/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2011 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
}
// 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, true);
- 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