aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/emailer.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/emailer.php')
-rwxr-xr-xphpBB/includes/emailer.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/includes/emailer.php b/phpBB/includes/emailer.php
index 85fe1428c3..b93e61f03c 100755
--- a/phpBB/includes/emailer.php
+++ b/phpBB/includes/emailer.php
@@ -171,9 +171,17 @@ class emailer
//
function send()
{
- global $phpEx;
+ global $phpEx, $phpbb_root_dir;
- $phpbb_root_path = "./";
+ if (isset($phpbb_root_dir))
+ {
+ // we must be in the admin section.
+ $phpbb_root_path = $phpbb_root_dir;
+ }
+ else
+ {
+ $phpbb_root_path = "./";
+ }
if ($this->address == NULL)
{