From 047f93cd4095384afd3f8861c20cbc2ff6ab4bbc Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Thu, 2 Feb 2006 23:03:24 +0000
Subject: [PATCH] =?UTF-8?q?meilleur=20message=20d'erreur,=20et=20suppressi?=
 =?UTF-8?q?on=20d'une=20normalisation=20maintenant=20faite=20dans=20tout?=
 =?UTF-8?q?=20le=20code=20(si=20on=20en=20a=20oubli=C3=A9=20=C3=A7a=20se?=
 =?UTF-8?q?=20verra=20vite)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc_utils.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ecrire/inc_utils.php b/ecrire/inc_utils.php
index 16f7f59484..08a7f2b18d 100644
--- a/ecrire/inc_utils.php
+++ b/ecrire/inc_utils.php
@@ -41,9 +41,8 @@ function include_ecrire($file) {
 function include_fonction($nom) {
 # Hack pour etre compatible avec les mes_options qui appellent cette fonction
 	define_once('_DIR_INCLUDE', _DIR_RESTREINT);
-	$nom = preg_replace("/\.php[3]?$/",'', basename($nom));
+# vieillerie	$nom = preg_replace("/\.php[3]?$/",'', basename($nom));
 	$inc = ("exec_" . $nom);
-#	spip_log("if $inc");
 	$f = find_in_path($inc  . '.php');
 	if ($f && is_readable($f)) {
 		if (!$GLOBALS['included_files'][$f]++) include($f);
@@ -62,7 +61,7 @@ function include_fonction($nom) {
 		return $f;
 	else {
 	  spip_log("fonction $nom indisponible" .
-		   ($inc ? "" : "(aucun fichier exec_$f disponible)"));
+		   ($inc ? "" : "(aucun fichier exec_$nom disponible)"));
 	  exit;
 	}
 }
-- 
GitLab