Changeset 25801 in spip-zone


Ignore:
Timestamp:
Jan 7, 2009, 3:00:16 PM (13 years ago)
Author:
fil@…
Message:

retablir la creation de pages petee par generer_url_entite (suite)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/gribouille/article_fonctions.php

    r25800 r25801  
    8080
    8181        include_spip('inc/headers');
    82         $url = function_exists('generer_url_entite')
    83                 ? generer_url_entite($id_article, 'article')
    84                 : generer_url_article($id_article, '&');
     82        if (function_exists('generer_url_entite')) {
     83                $url = generer_url_entite($id_article, 'article');
     84        } else {
     85                charger_generer_url();
     86                $url = generer_url_article($id_article, '&');
     87        }
    8588        redirige_par_entete($url);
    8689}
Note: See TracChangeset for help on using the changeset viewer.