From d3e4d41fbb9768ebdc279a1a36bcc0c6fc964728 Mon Sep 17 00:00:00 2001
From: Fil <fil@rezo.net>
Date: Wed, 24 Oct 2007 20:47:51 +0000
Subject: [PATCH] patch pas satisfaisant pour eviter une boucle infinie sur
 _T(), car chercher_module_lang('spip', null) ne doit pas donner spip.php

---
 ecrire/inc/traduire.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/inc/traduire.php b/ecrire/inc/traduire.php
index 7b4f5bb97c..32c5ce7e50 100644
--- a/ecrire/inc/traduire.php
+++ b/ecrire/inc/traduire.php
@@ -17,7 +17,7 @@ if (!defined("_ECRIRE_INC_VERSION")) return;
 //
 // http://doc.spip.org/@chercher_module_lang
 function chercher_module_lang($module, $lang = '') {
-	if ($lang)
+	if ($lang OR $module=='spip')
 		$lang = '_'.$lang;
 
 	// 1) dans un repertoire nomme lang/ se trouvant sur le chemin
-- 
GitLab