From a7361b0f6c1f1cbbe0d07505bc791a5d86cb7996 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 8 Jun 2006 11:03:25 +0000 Subject: [PATCH] Made current main base set up more early git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3713 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 5 +++++ include/class_MultiSelectWindow.inc | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html/main.php b/html/main.php index e43f2aaeb..efd6806d6 100644 --- a/html/main.php +++ b/html/main.php @@ -148,6 +148,11 @@ bindtextdomain($domain, "$BASE_DIR/locale"); textdomain($domain); @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to"); +/* Preset current main base */ +if(!isset($_SESSION['CurrentMainBase'])){ + $_SESSION['CurrentMainBase']= get_base_from_people($ui->dn); +} + /* Prepare plugin list */ if (!isset($_SESSION['plist'])){ $_SESSION['plist']= new pluglist($config, $ui); diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index a26337785..6cb52c0f6 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -80,11 +80,6 @@ class MultiSelectWindow{ $this->filterName = $filterName; /* Set default base, to users base */ - $ui = get_userinfo(); - $base = get_base_from_people($ui->dn); - if(!isset($_SESSION['CurrentMainBase'])){ - $_SESSION['CurrentMainBase'] = $base; - } $this->selectedBase = $_SESSION['CurrentMainBase']; /* Check default values for SaveAdditionalVars */ -- 2.30.2