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, 1 insertions, 11 deletions
diff --git a/phpBB/includes/emailer.php b/phpBB/includes/emailer.php
index a6e8aaf5f0..331d8fc3e8 100755
--- a/phpBB/includes/emailer.php
+++ b/phpBB/includes/emailer.php
@@ -178,17 +178,7 @@ class emailer
//
function send()
{
- global $phpEx, $phpbb_root_dir;
-
- if (isset($phpbb_root_dir))
- {
- // we must be in the admin section.
- $phpbb_root_path = $phpbb_root_dir;
- }
- else
- {
- $phpbb_root_path = "./";
- }
+ global $phpEx, $phpbb_root_path;
if ($this->address == NULL)
{