From c6d29662a79ffd2538b2714048043fa5b262aa13 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 7 Feb 2014 05:07:49 -0800 Subject: [PATCH] Fix for language-file include warnings. --- e107_handlers/e107_class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 6b0b791f0..2892cc31c 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -2288,6 +2288,11 @@ class e107 self::getMessage()->addDebug("Couldn't load language file: ".$path); $path = str_replace(e_LANGUAGE, 'English', $path); + + if(!is_readable($path)) + { + return; + } } $ret = ($force) ? include($path) : include_once($path);