From a689016f709ee669e8e4d63709bc629c8d00b077 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 19 Jan 2009 20:51:13 +0100 Subject: [PATCH] [svn r17836] Fixing validation in SVN#17707 --- main/inc/global.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/inc/global.inc.php b/main/inc/global.inc.php index 6e5ebacbc9..1f5d0252fa 100644 --- a/main/inc/global.inc.php +++ b/main/inc/global.inc.php @@ -484,10 +484,11 @@ if( isset($language_file) ) $langpath = api_get_path(SYS_CODE_PATH).'lang/'; if (is_array($language_files)) { - foreach($language_files as $index => $language_file) { + foreach($language_files as $index => $language_file) { include($langpath.'english/'.$language_file.'.inc.php'); - if (($language_interface)!='false') { - include($langpath.$language_interface.'/'.$language_file.'.inc.php'); + $langfile = $langpath.$language_interface.'/'.$language_file.'.inc.php'; + if (file_exists($langfile)) { + include($langfile); } } }