Code

Made current main base set up more early
[gosa.git] / html / main.php
index e43f2aaeb104149ffc1c5b3d6bc85e9e71146f32..efd6806d6ef629a076eb1238f9f8645f3533eb42 100644 (file)
@@ -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);