Rev 66 | Rev 74 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 66 | Rev 70 | ||
---|---|---|---|
Line 98... | Line 98... | ||
98 | throw new Exception("Attention: Two objectType plugins use the same namespace \"$ns\"!"); |
98 | throw new Exception("Attention: Two objectType plugins use the same namespace \"$ns\"!"); |
99 | } |
99 | } |
100 | 100 | ||
101 | $init = OIDplus::config()->getValue("objecttypes_initialized"); |
101 | $init = OIDplus::config()->getValue("objecttypes_initialized"); |
102 | $init_ary = empty($init) ? array() : explode(';', $init); |
102 | $init_ary = empty($init) ? array() : explode(';', $init); |
- | 103 | $init_ary = array_map('trim', $init_ary); |
|
103 | 104 | ||
104 | $enabled = OIDplus::config()->getValue("objecttypes_enabled"); |
105 | $enabled = OIDplus::config()->getValue("objecttypes_enabled"); |
105 | $enabled_ary = empty($enabled) ? array() : explode(';', $enabled); |
106 | $enabled_ary = empty($enabled) ? array() : explode(';', $enabled); |
- | 107 | $enabled_ary = array_map('trim', $enabled_ary); |
|
106 | 108 | ||
107 | if (in_array($ns, $enabled_ary) || !in_array($ns, $init_ary)) { |
109 | if (in_array($ns, $enabled_ary) || !in_array($ns, $init_ary)) { |
108 | self::$objectTypes[] = $ot; |
110 | self::$objectTypes[] = $ot; |
109 | usort(self::$objectTypes, function($a, $b) { |
111 | usort(self::$objectTypes, function($a, $b) { |
110 | $enabled = OIDplus::config()->getValue("objecttypes_enabled"); |
112 | $enabled = OIDplus::config()->getValue("objecttypes_enabled"); |