- if (count($installed_extensions) > 0)
- {
- foreach ($installed_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");
- }
- }
- }
-