File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ public function onChangeEmail(IUser $user, $oldMailAddress) {
123
123
->setType ('personal_settings ' )
124
124
->setAffectedUser ($ user ->getUID ());
125
125
126
+ $ instanceName = $ this ->defaults ->getName ();
126
127
$ instanceUrl = $ this ->urlGenerator ->getAbsoluteURL ('/ ' );
127
128
$ language = $ this ->languageFactory ->getUserLanguage ($ user );
128
129
$ l = $ this ->languageFactory ->get ('settings ' , $ language );
@@ -159,7 +160,7 @@ public function onChangeEmail(IUser $user, $oldMailAddress) {
159
160
'instanceUrl ' => $ instanceUrl ,
160
161
]);
161
162
162
- $ template ->setSubject ($ l ->t ('Email address for %1$s changed on %2$s ' , [$ user ->getDisplayName (), $ instanceUrl ]));
163
+ $ template ->setSubject ($ l ->t ('Email address for %1$s changed on %2$s ' , [$ user ->getDisplayName (), $ instanceName ]));
163
164
$ template ->addHeader ();
164
165
$ template ->addHeading ($ l ->t ('Email address changed for %s ' , [$ user ->getDisplayName ()]), false );
165
166
$ template ->addBodyText ($ text . ' ' . $ l ->t ('If you did not request this, please contact an administrator. ' ));
You can’t perform that action at this time.
0 commit comments