diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-02 14:49:40 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-02 14:49:40 +0100 |
commit | baecfc4080214f37708f8c233c0f9b33df7571fd (patch) | |
tree | 89f2fef954606433ada44284b623dc8a5d066749 /lib/public/util.php | |
parent | 8d218bf3ef842d76c2b97a175b28e13054497952 (diff) | |
download | nextcloud-server-baecfc4080214f37708f8c233c0f9b33df7571fd.tar.gz nextcloud-server-baecfc4080214f37708f8c233c0f9b33df7571fd.zip |
Reduce OC_Config usage in lib/
* replaced by proper public interfaces
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 50fe9185006..110028368d0 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -361,9 +361,10 @@ class Util { * @since 5.0.0 */ public static function getDefaultEmailAddress($user_part) { - $user_part = \OC_Config::getValue('mail_from_address', $user_part); + $config = \OC::$server->getConfig(); + $user_part = $config->getSystemValue('mail_from_address', $user_part); $host_name = self::getServerHostName(); - $host_name = \OC_Config::getValue('mail_domain', $host_name); + $host_name = $config->getSystemValue('mail_domain', $host_name); $defaultEmailAddress = $user_part.'@'.$host_name; $mailer = \OC::$server->getMailer(); |