Fix title of email to reset password
This commit is contained in:
parent
0d8a354934
commit
01c21d2d10
@ -2050,7 +2050,7 @@ class User extends CommonObject
|
|||||||
public function send_password($user, $password = '', $changelater = 0)
|
public function send_password($user, $password = '', $changelater = 0)
|
||||||
{
|
{
|
||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $conf, $langs;
|
global $conf, $langs, $mysoc;
|
||||||
global $dolibarr_main_url_root;
|
global $dolibarr_main_url_root;
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
|
||||||
@ -2081,7 +2081,7 @@ class User extends CommonObject
|
|||||||
$appli = $conf->global->MAIN_APPLICATION_TITLE;
|
$appli = $conf->global->MAIN_APPLICATION_TITLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
$subject = $outputlangs->transnoentitiesnoconv("SubjectNewPassword", $appli);
|
$subject = '['.$mysoc->name.'] '.$outputlangs->transnoentitiesnoconv("SubjectNewPassword", $appli);
|
||||||
|
|
||||||
// Define $urlwithroot
|
// Define $urlwithroot
|
||||||
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
|
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user