Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / frontaccounting.php
index 7e2201882a74b9f954ca64cfa97c8f69c5df83c4..033c99283758f9f537cb096323221779ad7b69f2 100644 (file)
@@ -44,8 +44,9 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
                        //$this->renderer =& new renderer();
                }
                function add_application(&$app)
-                               {
-                                                       $this->applications[$app->id] = &$app;
+                               {       
+                                       if ($app->enabled) // skip inactive modules
+                                               $this->applications[$app->id] = &$app;
                                }
                function get_application($id)
                                {
@@ -90,11 +91,11 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
                        {
                                foreach ($installed_extensions as $ext)
                                {
-                                       get_text::add_domain($_SESSION['language']->code, 
+                                       $_SESSION['get_text']->add_domain($_SESSION['language']->code, 
                                                $ext['folder']."/lang");
                                        $class = $ext['name']."_app";
                                        $this->add_application(new $class());
-                                       get_text::add_domain($_SESSION['language']->code, 
+                                       $_SESSION['get_text']->add_domain($_SESSION['language']->code, 
                                                $path_to_root."/lang");
                                }
                        }