diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-05-22 23:51:03 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-05-22 23:51:03 +0000 |
commit | 12fef465d0264e795be967a2c801344b0504aa1f (patch) | |
tree | 61835d94c42f3a186ca8f39297251b8f1044a42d /functions | |
parent | b8c2abf383a29480762d0a74cc11633ff6116f23 (diff) | |
download | phpicalendar-12fef465d0264e795be967a2c801344b0504aa1f.tar.gz phpicalendar-12fef465d0264e795be967a2c801344b0504aa1f.tar.bz2 phpicalendar-12fef465d0264e795be967a2c801344b0504aa1f.zip |
Fix for:
[ 958694 ] '"english" is not a supported language.' bug continues
Diffstat (limited to 'functions')
-rw-r--r-- | functions/init.inc.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 68ef2b7..cfda336 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -1,9 +1,4 @@ <?php -// jared-2002.10.30, I want to make sure my published calendars are world-read/writeable -// so I have this making sure they all are. This should be commented out/deleted -// for shipping versions. This is a convenience so when I commit, changes are made and -// I don't get errors. -//chmod(BASE.'calendars/School.ics',0666); // uncomment when developing, comment for shipping version error_reporting (E_ERROR | E_WARNING | E_PARSE); @@ -55,7 +50,7 @@ if ($action == 'logout' || $invalid_login) { $language = strtolower($language); $lang_file = BASE.'/languages/'.$language.'.inc.php'; -if (file_exists($lang_file)) { +if (file_exists(realpath($lang_file))) { include($lang_file); } else { exit(error('The requested language "'.$language.'" is not a supported language. Please use the configuration file to choose a supported language.')); |