diff options
author | Eric Helgeson <helfire@Erics-MBP.local> | 2009-03-09 20:01:35 -0500 |
---|---|---|
committer | Eric Helgeson <helfire@Erics-MBP.local> | 2009-03-09 20:01:35 -0500 |
commit | c6cd87c106b763ed5610dae64e5a02ba86609ece (patch) | |
tree | 2f93e5b2f7183fee0c6fcebce9de93033f930ae2 /lib/mail.php | |
parent | 945bbf00dc9ee106359e9387956c72c1290d12fc (diff) |
Changed all $config[][] calls to common_config()
Diffstat (limited to 'lib/mail.php')
-rw-r--r-- | lib/mail.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/mail.php b/lib/mail.php index 9fa86de5c..dde7571eb 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -50,10 +50,9 @@ function mail_backend() static $backend = null; if (!$backend) { - global $config; - $backend = Mail::factory($config['mail']['backend'], - ($config['mail']['params']) ? - $config['mail']['params'] : + $backend = Mail::factory(common_config('mail', 'backend'), + (common_config('mail', 'params')) ? + common_config('mail', 'params') : array()); if (PEAR::isError($backend)) { common_server_error($backend->getMessage(), 500); |