From 9e7e53c87beff072b10d94762b4a6bc249db47c3 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Mon, 7 Feb 2005 09:37:50 +0000
Subject: [PATCH] perso.php3 --> find_in_path('lang_perso.php3')

---
 ecrire/inc_lang.php3 | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/ecrire/inc_lang.php3 b/ecrire/inc_lang.php3
index 22c5229205..98aaf8d1d9 100644
--- a/ecrire/inc_lang.php3
+++ b/ecrire/inc_lang.php3
@@ -35,10 +35,7 @@ function charger_langue($lang, $module = 'spip', $forcer = false) {
 	}
 
 	// surcharge perso
-	if (@is_readable(_DIR_LANG .'perso.php3')) {
-		include_lang('perso.php3');
-	}
-
+	if ($f = (find_in_path('lang_perso.php3')))  include($f);
 }
 
 //
-- 
GitLab