Remove use of $wgLang

Change-Id: I1f5c39ade2c5a42f0e3fcf0eb2e4c8ed07ddb763
这个提交包含在:
Dringsim 2024-05-04 15:38:44 +08:00
父节点 6be4058daf
当前提交 2c4b09f814
找不到此签名对应的密钥
GPG 密钥 ID: 7C5B1DFB8E73902C
共有 1 个文件被更改,包括 10 次插入7 次删除

查看文件

@ -71,7 +71,6 @@ class EmailableUser extends User {
* @return Status
*/
public function sendConfirmAndMigrateMail() {
global $wgLang;
// 14 days
$tokenLife = 14 * 24 * 60 * 60;
@ -102,12 +101,16 @@ class EmailableUser extends User {
wfMessage( "centralauth-finishglobaliseemail_body",
$this->getRequest()->getIP(),
$this->getName(),
$mergeAccountUrl,
$wgLang->timeanddate( $expiration, false ),
$invalidateURL,
$wgLang->date( $expiration, false ),
$wgLang->time( $expiration, false )
)->text()
$mergeAccountUrl
)->dateTimeParams(
$expiration
)->params(
$invalidateURL
)->dateParams(
$expiration
)->timeParams(
$expiration
)->text()
);
}
}