From 95ee8cb8f3de04b479b5ae7390fd9113012832fa Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 3 Nov 2013 03:12:09 -0800 Subject: [PATCH] Multi-language path fix for English_custom.php --- class2.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/class2.php b/class2.php index 0b2ee739c..88a6e6683 100644 --- a/class2.php +++ b/class2.php @@ -559,13 +559,22 @@ if(varset($pref['multilanguage']) && (e_LANGUAGE != $pref['sitelanguage'])) //do it only once and with the proper function // e107_include_once(e_LANGUAGEDIR.e_LANGUAGE.'/'.e_LANGUAGE.'.php'); // e107_include_once(e_LANGUAGEDIR.e_LANGUAGE.'/'.e_LANGUAGE.'_custom.php'); +// v1 Custom language File Path. include(e_LANGUAGEDIR.e_LANGUAGE.'/'.e_LANGUAGE.'.php'); // FASTEST - ALWAYS load $customLan = e_LANGUAGEDIR.e_LANGUAGE.'/'.e_LANGUAGE.'_custom.php'; if(is_readable($customLan)) // FASTER - if exist, should be done 'once' by the core { include($customLan); } -unset($customLan); + +// v2 Custom language File Path. +$customLan2 = e_SYSTEM.'/lans/'.e_LANGUAGE.'_custom.php'; +if(is_readable($customLan2)) // FASTER - if exist, should be done 'once' by the core +{ + include($customLan2); +} +unset($customLan, $customLan2); + $sql->db_Mark_Time('Start: Global Language Files'); if(isset($pref['lan_global_list']))