- if (count($installed_extensions) > 0)
- {
- // 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'] && $ext['type'] == 'module')) // supressed warnings before 2.2 upgrade
- {
- $_SESSION['get_text']->add_domain($_SESSION['language']->code,
- $ext['path']."/lang");
- $class = $ext['tab']."_app";
- if (class_exists($class))
- $this->add_application(new $class());
- $_SESSION['get_text']->add_domain($_SESSION['language']->code,
- $path_to_root."/lang");
- }
- }
- }
-