summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-12-07 23:49:01 +0100
committerGitHub <noreply@github.com>2022-12-07 23:49:01 +0100
commit65988beaf09f251c4274f4d53e7456242426f798 (patch)
treeaaac271f2be5bd11ea28d96f4581beac8828e8ec /lib
parent87e638b1f8c0e418b491464c4b7dccce0e8a61bf (diff)
parentfc97f6847dbf8c165633077d8380298e208c64c9 (diff)
downloadnextcloud-server-65988beaf09f251c4274f4d53e7456242426f798.tar.gz
nextcloud-server-65988beaf09f251c4274f4d53e7456242426f798.zip
Merge pull request #35586 from J0WI/public.systemvalue
Replace getSystemValue with getSystemValueString in Util.php
Diffstat (limited to 'lib')
-rw-r--r--lib/public/Util.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php
index 1289f8ccff4..b2b3322fe86 100644
--- a/lib/public/Util.php
+++ b/lib/public/Util.php
@@ -323,11 +323,11 @@ class Util {
* is passed to this function
* @since 5.0.0
*/
- public static function getDefaultEmailAddress($user_part) {
+ public static function getDefaultEmailAddress(string $user_part): string {
$config = \OC::$server->getConfig();
- $user_part = $config->getSystemValue('mail_from_address', $user_part);
+ $user_part = $config->getSystemValueString('mail_from_address', $user_part);
$host_name = self::getServerHostName();
- $host_name = $config->getSystemValue('mail_domain', $host_name);
+ $host_name = $config->getSystemValueString('mail_domain', $host_name);
$defaultEmailAddress = $user_part.'@'.$host_name;
$mailer = \OC::$server->getMailer();