diff --git a/module/bug/model.php b/module/bug/model.php index 856ee2f448..30ca702fb3 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -2197,7 +2197,7 @@ class bugModel extends model } /* Get mail content. */ - $modulePath = $this->app->getModulePath(); + $modulePath = $this->app->getModulePath($appName = '', 'bug'); $oldcwd = getcwd(); $viewFile = $modulePath . 'view/sendmail.html.php'; chdir($modulePath . 'view'); diff --git a/module/story/model.php b/module/story/model.php index d5dc89e0bd..3e08d7ff0d 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2363,7 +2363,7 @@ class storyModel extends model } /* Get mail content. */ - $modulePath = $this->app->getModulePath(); + $modulePath = $this->app->getModulePath($appName = '', 'story'); $oldcwd = getcwd(); $viewFile = $modulePath . 'view/sendmail.html.php'; chdir($modulePath . 'view'); diff --git a/module/task/model.php b/module/task/model.php index 7817f8ff99..bc26fdf53c 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1738,7 +1738,7 @@ class taskModel extends model $action->history = isset($history[$actionID]) ? $history[$actionID] : array(); /* Get mail content. */ - $modulePath = $this->app->getModulePath(); + $modulePath = $this->app->getModulePath($appName = '', 'task'); $oldcwd = getcwd(); $viewFile = $modulePath . 'view/sendmail.html.php'; chdir($modulePath . 'view'); diff --git a/module/testtask/model.php b/module/testtask/model.php index 764ac40af9..d6d952cd6e 100644 --- a/module/testtask/model.php +++ b/module/testtask/model.php @@ -758,7 +758,7 @@ class testtaskModel extends model $action->history = isset($history[$actionID]) ? $history[$actionID] : array(); /* Get mail content. */ - $modulePath = $this->app->getModulePath(); + $modulePath = $this->app->getModulePath($appName = '', 'testtask'); $oldcwd = getcwd(); $viewFile = $modulePath . 'view/sendmail.html.php'; chdir($modulePath . 'view');