From: x99bachelart Date: Sat, 27 Sep 2003 11:40:18 +0000 (+0000) Subject: bugfixes X-Git-Tag: 1.8~398 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=038d7ab30529d8f052097aeef8a83822865ab897;p=banana.git bugfixes --- diff --git a/install.d/profile.inc.php b/install.d/profile.inc.php index f7f93d5..b61e863 100644 --- a/install.d/profile.inc.php +++ b/install.d/profile.inc.php @@ -31,6 +31,7 @@ function getprofile() { $array['display'] = $_SESSION['displaytype']; $array['lastnews'] = time()-86400; $array['locale'] = "locales/fr.inc.php"; + $array['subscribe'] = array(); return $array; } ?> diff --git a/install.d/session.inc.php b/install.d/session.inc.php index 485315d..182558c 100644 --- a/install.d/session.inc.php +++ b/install.d/session.inc.php @@ -14,6 +14,7 @@ if (!isset($_SESSION['profile']) && (!isset($_POST['action']) || (isset($_POST['action']) && ($_POST['action']!="OK")))) { require("include/profile.inc.php"); $profile=getprofile(); + require($profile['locale']); require("header.inc.php"); require("profile_form.inc.php"); require("footer.inc.php");