mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Fix for language-file include warnings.
This commit is contained in:
@@ -2288,6 +2288,11 @@ class e107
|
|||||||
|
|
||||||
self::getMessage()->addDebug("Couldn't load language file: ".$path);
|
self::getMessage()->addDebug("Couldn't load language file: ".$path);
|
||||||
$path = str_replace(e_LANGUAGE, 'English', $path);
|
$path = str_replace(e_LANGUAGE, 'English', $path);
|
||||||
|
|
||||||
|
if(!is_readable($path))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = ($force) ? include($path) : include_once($path);
|
$ret = ($force) ? include($path) : include_once($path);
|
||||||
|
Reference in New Issue
Block a user