feat: ajout slug : url_spip_pass
This commit is contained in:
parent
8a7a4c1a58
commit
e360a189ee
1 changed files with 11 additions and 0 deletions
|
@ -13,6 +13,17 @@ if (!defined('_ECRIRE_INC_VERSION')) {
|
|||
*
|
||||
**/
|
||||
function inc_gamumail_remplacements_dist($args, $html) {
|
||||
/**
|
||||
* @@url_spip_pass@@
|
||||
**/
|
||||
include_spip('action/inscrire_auteur');
|
||||
$cookie = auteur_attribuer_jeton($args['destinataires'][0] ?? '');
|
||||
$url_spip_pass = url_absolue(
|
||||
generer_url_public('spip_pass', "p=$cookie"),
|
||||
$GLOBALS['meta']['adresse_site'] . '/'
|
||||
);
|
||||
$html = gamumail_remplacer_modele('url_spip_pass', $url_spip_pass, $html);
|
||||
|
||||
/**
|
||||
* @@nom@@ => $nom ou un espace pour vider le champ @@nom@@
|
||||
**/
|
||||
|
|
Loading…
Add table
Reference in a new issue