Code

Fixed tab generation
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jan 2008 16:43:18 +0000 (16:43 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Jan 2008 16:43:18 +0000 (16:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8414 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_location.inc
gosa-core/include/class_tabs.inc

index cabed3289fde79a53ba19fc10ec83dcb82de1100..a137f9b5872fa43afb4e3c2c01548eabdf7aafb4 100644 (file)
@@ -59,17 +59,6 @@ $class_mapping= array(
                 "divListBlocklist" => "plugins/gofax/blocklists/class_divListBlocklists.inc",
                 "blocklistGeneric" => "plugins/gofax/blocklists/class_blocklistGeneric.inc",
                 "gofaxAccount" => "plugins/gofax/faxaccount/class_gofaxAccount.inc",
-                "fonreport" => "plugins/gofon/fonreports/class_fonreport.inc",
-                "phoneAccount" => "plugins/gofon/phoneaccount/class_phoneAccount.inc",
-                "divListConference" => "plugins/gofon/conference/class_divListConferences.inc",
-                "phoneConferenceManagment" => "plugins/gofon/conference/class_phoneConferenceManagment.inc",
-                "conferencetabs" => "plugins/gofon/conference/tabs_conference.inc",
-                "conference" => "plugins/gofon/conference/class_phoneConferenceGeneric.inc",
-                "divListMacro" => "plugins/gofon/macro/class_divListMacros.inc",
-                "macro" => "plugins/gofon/macro/class_gofonMacro.inc",
-                "macrotabs" => "plugins/gofon/macro/tabs_macros.inc",
-                "macroParameter" => "plugins/gofon/macro/class_gofonMacroParameters.inc",
-                "goFonMacro" => "plugins/gofon/macro/class_gofonMacroManagement.inc",
                 "reference" => "plugins/generic/references/class_reference.inc",
                 "termgroup" => "plugins/admin/ogroups/class_termgroup.inc",
                 "ogroup" => "plugins/admin/ogroups/class_ogroup.inc",
index aa00fbc2483c5fa0dd57a5e47be4c58c8948d850..e05e60c516aaedae9b247bbf93a63603d4fbea7a 100644 (file)
@@ -44,6 +44,11 @@ class tabs
     $baseobject= NULL;
 
     foreach ($data as &$tab){
+
+      if (!plugin_available($tab['CLASS'])){
+       continue;
+      }
+
       $this->by_name[$tab['CLASS']]= $tab['NAME'];
 
       if ($baseobject === NULL){