- // Do not use global array directly here, or you suffer
- // from buggy php behaviour (unexpected loop break
- // because of same var usage in class constructor).
- $extensions = $installed_extensions;
- foreach ($extensions as $ext)
- {
- if (@($ext['active'] && isset($ext['tabs']))) { // supressed warnings before 2.2 upgrade
- set_ext_domain($ext['path']);
- foreach($ext['tabs'] as $tab) {
- $class = $tab['tab_id']."_app";
- if (class_exists($class))
- $this->add_application(new $class());
- }
- }
- }
- set_ext_domain();