Fixed gettext for extension links.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 6 Oct 2010 14:15:35 +0000 (14:15 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 6 Oct 2010 14:15:35 +0000 (14:15 +0000)
reporting/includes/reports_classes.inc

index dd0bc82bfeaa0341800f966086bda7701825b9cd..2d39aca4df2d6340e7d53456425db6671d5d65e9 100644 (file)
@@ -470,8 +470,11 @@ function add_custom_reports(&$reports)
                foreach ($extensions as $ext)
                        if (($ext['active'] && $ext['type'] == 'extension')) {
                                $file = $path_to_root.'/'.$ext['path']."/reporting/reports_custom.php";
-                               if (file_exists($file))
+                               if (file_exists($file)) {
+                                       set_ext_domain($ext['path']);
                                        include_once($file);
+                                       set_ext_domain();
+                               }
                        }
        }
        $file = company_path()."/reporting/reports_custom.php";