From 5b4dbb83e4a89ef5c93f4311c5e96460ff38bd1a Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 5 Feb 2014 06:14:13 -0800 Subject: [PATCH] Closes #385 Corrected language-file debug warnings. --- e107_handlers/e107_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index c1201c869..6b0b791f0 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -2285,9 +2285,11 @@ class e107 { return FALSE; } - // $path = str_replace(e_LANGUAGE, 'English', $path); + self::getMessage()->addDebug("Couldn't load language file: ".$path); + $path = str_replace(e_LANGUAGE, 'English', $path); } + $ret = ($force) ? include($path) : include_once($path); return (isset($ret)) ? $ret : ""; }