1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 23:26:41 +02:00

Issue #360 - path correction

This commit is contained in:
Cameron
2013-05-26 15:55:14 -07:00
parent ab3de984e9
commit 97fbfa8e97

View File

@@ -2320,12 +2320,12 @@ class e107
elseif($fname === true) // admin file. elseif($fname === true) // admin file.
{ {
//$fname = "admin/".e_LANGUAGE; //$fname = "admin/".e_LANGUAGE;
$fname = ($flat === true) ? e_LANGUAGE."_admin" : "admin/".e_LANGUAGE; $fname = e_LANGUAGE."_admin";
} }
else else
{ {
// $fname = e_LANGUAGE; // $fname = e_LANGUAGE;
$fname = ($flat === true) ? e_LANGUAGE."_front" : e_LANGUAGE; $fname = e_LANGUAGE."_front";
} }
if($flat === true && is_dir(e_PLUGIN.$plugin."/languages/".e_LANGUAGE)) // support for alt_auth/languages/English/English_log.php etc. if($flat === true && is_dir(e_PLUGIN.$plugin."/languages/".e_LANGUAGE)) // support for alt_auth/languages/English/English_log.php etc.
@@ -2337,7 +2337,6 @@ class e107
$path = e_PLUGIN.$plugin.'/languages/'.$fname.'.php'; $path = e_PLUGIN.$plugin.'/languages/'.$fname.'.php';
} }
echo "<br />".$path;
if(E107_DBG_INCLUDES) if(E107_DBG_INCLUDES)
{ {
e107::getMessage()->addDebug("Attempting to Load: ".$path); e107::getMessage()->addDebug("Attempting to Load: ".$path);