dépôts
/
velocampus
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git]
/
www
/
ecrire
/
inc
/
actions.php
diff --git
a/www/ecrire/inc/actions.php
b/www/ecrire/inc/actions.php
index
e668917
..
78082f9
100644
(file)
--- a/
www/ecrire/inc/actions.php
+++ b/
www/ecrire/inc/actions.php
@@
-3,7
+3,7
@@
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-201
1
*
+ * Copyright (c) 2001-201
4
*
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
@@
-21,11
+21,12
@@
function generer_action_auteur($action, $arg, $redirect="", $mode=false, $att=''
}
// http://doc.spip.org/@redirige_action_auteur
}
// 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
}
// http://doc.spip.org/@redirige_action_post