aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2005-10-05 00:29:13 +0000
committerChad Little <clittle@users.sourceforge.net>2005-10-05 00:29:13 +0000
commit316c2fb104f90ed9918fc93c669364aae88ef651 (patch)
treef243834471775e2bf46aab98f5959e6ab7dd4325 /functions/init.inc.php
parent51ddfbbb8e5c9286440a4dccd75bb637349a8f43 (diff)
downloadphpicalendar-316c2fb104f90ed9918fc93c669364aae88ef651.tar.gz
phpicalendar-316c2fb104f90ed9918fc93c669364aae88ef651.tar.bz2
phpicalendar-316c2fb104f90ed9918fc93c669364aae88ef651.zip
Updated incorrectly built RSS (now validates).
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r--functions/init.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php
index b5f0018..2cec049 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -1,7 +1,7 @@
<?php
// uncomment when developing, comment for shipping version
-error_reporting (E_ERROR | E_WARNING | E_PARSE);
+//error_reporting (E_ERROR | E_WARNING | E_PARSE);
// Older versions of PHP do not define $_SERVER. Define it here instead.
if (!isset($_SERVER) && isset($_SERVER)) {
@@ -48,10 +48,10 @@ if ($action == 'logout' || $invalid_login) {
// language support
$language = strtolower($language);
-$lang_file = BASE.'/languages/'.$language.'.inc.php';
+$lang_file = BASE.'languages/'.$language.'.inc.php';
-if (file_exists(realpath($lang_file))) {
- unset($lang);
+unset($lang);
+if (include($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.'));

© 2014-2024 Faster IT GmbH | imprint | privacy policy