Changeset 24793 in spip-zone


Ignore:
Timestamp:
Nov 30, 2008, 5:57:26 PM (11 years ago)
Author:
marcimat@…
Message:

Ne pas bloquer la configuration de SPIP 2 a cause de fonctions déja déclarées

Location:
_plugins_/_dev_/urls_libres/urls
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/urls_libres/urls/urls_libres_generer.php

    r13806 r24793  
    220220
    221221// http://doc.spip.org/@generer_url_article
     222if (!function_exists('generer_url_article')) {
    222223function generer_url_article($id_article, $args='', $ancre='') {
    223224        return _generer_url_libre('article', $id_article, '',
     
    225226                                 'def' =>  get_spip_script('./')."?page=article&id_article=$id_article"));
    226227}
     228}
    227229
    228230// http://doc.spip.org/@generer_url_rubrique
     231if (!function_exists('generer_url_rubrique')) {
    229232function generer_url_rubrique($id_rubrique, $args='', $ancre='') {
    230233        return _generer_url_libre('rubrique', $id_rubrique, '-',
     
    232235                                 'def' =>  get_spip_script('./')."?page=rubrique&id_rubrique=$id_rubrique"));
    233236}
     237}
    234238
    235239// http://doc.spip.org/@generer_url_breve
     240if (!function_exists('generer_url_breve')) {
    236241function generer_url_breve($id_breve, $args='', $ancre='') {
    237242        return _generer_url_libre('breve', $id_breve, '+',
    238243                                array('args' => $args, 'ancre' => $ancre,
    239244                                 'def' =>  get_spip_script('./')."?page=breve&id_breve=$id_breve"));
     245}
    240246}
    241247
     
    243249// retourne generer_url_xxx($id)."#forum$id_forum"
    244250// http://doc.spip.org/@generer_url_forum
     251if (!function_exists('generer_url_forum')) {
    245252function generer_url_forum($id_forum, $args='', $ancre='', $show_thread=false) {
    246253        include_spip('inc/forum');
    247254        return generer_url_forum_dist($id_forum, $show_thread);
    248255}
     256}
    249257
    250258// http://doc.spip.org/@generer_url_mot
     259if (!function_exists('generer_url_mot')) {
    251260function generer_url_mot($id_mot, $args='', $ancre='') {
    252261        return _generer_url_libre('mot', $id_mot, '+-',
     
    254263                                 'def' =>  get_spip_script('./')."?page=mot&id_mot=$id_mot"));
    255264}
     265}
    256266
    257267// http://doc.spip.org/@generer_url_auteur
     268if (!function_exists('generer_url_auteur')) {
    258269function generer_url_auteur($id_auteur, $args='', $ancre='') {
    259270        return _generer_url_libre('auteur', $id_auteur, '_',
     
    261272                                 'def' =>  get_spip_script('./')."?page=auteur&id_auteur=$id_auteur"));
    262273}
     274}
    263275
    264276// http://doc.spip.org/@generer_url_site
     277if (!function_exists('generer_url_site')) {
    265278function generer_url_site($id_syndic, $args='', $ancre='') {
    266279        return _generer_url_libre('site', $id_syndic, '@',
     
    268281                                 'def' =>  get_spip_script('./')."?page=site&id_syndic=$id_syndic"));
    269282}
     283}
    270284
    271285// http://doc.spip.org/@generer_url_document
     286if (!function_exists('generer_url_document')) {
    272287function generer_url_document($id_document, $args='', $ancre='') {
    273288        include_spip('inc/documents');
    274289        return generer_url_document_dist($id_document, $args, $ancre);
    275290}
     291}
    276292
    277293?>
  • _plugins_/_dev_/urls_libres/urls/urls_libres_recuperer.php

    r12776 r24793  
    1515
    1616// http://doc.spip.org/@recuperer_parametres_url
     17if (!function_exists('recuperer_parametres_url')){
    1718function recuperer_parametres_url(&$fond, $url) {
    1819        global $contexte;
     
    140141        return;
    141142}
     143}
    142144?>
Note: See TracChangeset for help on using the changeset viewer.