- // 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
- $_SESSION['get_text']->add_domain($_SESSION['language']->code,
- $ext['path']."/lang");
- foreach($ext['tabs'] as $tab) {
- $class = $tab['tab_id']."_app";
- if (class_exists($class))
- $this->add_application(new $class());
- }
- }
- }
- $_SESSION['get_text']->add_domain($_SESSION['language']->code,
- $path_to_root."/lang", $_SESSION['language']->version);