mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
34 lines
1.4 KiB
PHP
34 lines
1.4 KiB
PHP
<?php
|
|
|
|
/***************************************************************************\
|
|
* SPIP, Systeme de publication pour l'internet *
|
|
* *
|
|
* Copyright (c) 2001-2014 *
|
|
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
|
|
* *
|
|
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
|
|
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
|
|
\***************************************************************************/
|
|
|
|
if (!defined("_ECRIRE_INC_VERSION")) return; // securiser
|
|
|
|
/*
|
|
Ce jeu d'URLs est une variation de inc-urls-propres, qui ajoute
|
|
le suffixe '.html' aux adresses ;
|
|
*/
|
|
|
|
# donner un exemple d'url pour le formulaire de choix
|
|
define('URLS_PROPRES2_EXEMPLE', 'Titre-de-l-article.html -Rubrique-.html');
|
|
# specifier le form de config utilise pour ces urls
|
|
define('URLS_PROPRES2_CONFIG', 'propres');
|
|
|
|
if (!defined('_terminaison_urls_propres'))
|
|
define ('_terminaison_urls_propres', '.html');
|
|
|
|
// http://code.spip.net/@urls_propres2_dist
|
|
function urls_propres2_dist($i, &$entite, $args='', $ancre='') {
|
|
$f = charger_fonction('propres', 'urls');
|
|
return $f($i, $entite, $args, $ancre);
|
|
}
|
|
|
|
?>
|