summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-20 23:06:32 +0200
committeradmin <devnull@localhost>2006-09-20 23:06:32 +0200
commitd183cb5255817dc431196964becef0db037f0620 (patch)
treea4ee60cbca3e8ad29bee608f9b11812d56eaea60
parent402ddf4859c4e0691aa3eed7d57ad6d1b0a21a9b (diff)
-rw-r--r--system/libraries/Language.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/system/libraries/Language.php b/system/libraries/Language.php
index 328d53e46..41dab46f4 100644
--- a/system/libraries/Language.php
+++ b/system/libraries/Language.php
@@ -66,12 +66,24 @@ class CI_Language {
$idiom = ($deft_lang == '') ? 'english' : $deft_lang;
}
- if ( ! file_exists(BASEPATH.'language/'.$idiom.'/'.$langfile))
+ // Determine where the language file is and load it
+
+ if (file_exists(APPPATH.'language/'.$idiom.'/'.$langfile))
{
- show_error('Unable to load the requested language file: language/'.$langfile);
+ include_once(APPPATH.'language/'.$idiom.'/'.$langfile);
+ }
+ else
+ {
+ if (file_exists(BASEPATH.'language/'.$idiom.'/'.$langfile))
+ {
+ include_once(BASEPATH.'language/'.$idiom.'/'.$langfile);
+ }
+ else
+ {
+ show_error('Unable to load the requested language file: language/'.$langfile);
+ }
}
- include_once(BASEPATH.'language/'.$idiom.'/'.$langfile);
if ( ! isset($lang))
{