Skip to content
Extraits de code Groupes Projets
Valider b95a33c1 rédigé par Fil's avatar Fil
Parcourir les fichiers

compatilibite page.php3 pour INCLURE

parent aac499d6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -50,10 +50,14 @@ function calculer_inclure($struct, $descr, &$boucles, $id_boucle) { ...@@ -50,10 +50,14 @@ function calculer_inclure($struct, $descr, &$boucles, $id_boucle) {
$path = _DIR_RESTREINT.'public.php'; $path = _DIR_RESTREINT.'public.php';
# sinon chercher le fichier, eventuellement en changeant.php3 => .php # sinon chercher le fichier, eventuellement en changeant.php3 => .php
# et en gardant la compatibilite <INCLURE(page.php3)>
else if (!($path = find_in_path($fichier)) else if (!($path = find_in_path($fichier))
AND !( AND !(
preg_match(',^(.*[.]php)3$,', $fichier, $r) preg_match(',^(.*[.]php)3$,', $fichier, $r)
AND $path = find_in_path($r[1])) AND (
$path = find_in_path($r[1])
OR $path = ($[1] == 'page.php')? _DIR_RESTREINT.'public.php':'')
)
) { ) {
spip_log("ERREUR: <INCLURE($fichier)> impossible"); spip_log("ERREUR: <INCLURE($fichier)> impossible");
erreur_squelette(_T('zbug_info_erreur_squelette'), erreur_squelette(_T('zbug_info_erreur_squelette'),
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter