Skip to content

Commit 38f7341

Browse files
committed
Remove hard-coded language
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent e90f677 commit 38f7341

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ext.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public function is_enableable()
3939
*/
4040
public function disable_step($old_state)
4141
{
42-
// Use hardcoded language here since the $user is not available
43-
trigger_error('Please remove ext.php from the filesystem, purge the board cache, and try again.', E_USER_WARNING);
42+
trigger_error('TEAM_SECURITY_DISABLE_MESSAGE', E_USER_WARNING);
4443
}
4544
}

language/en/info_acp_teamsecurity.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@
3636

3737
// EMAIL
3838
'ACP_CONTACT_ADMIN' => 'the board administrator or webmaster',
39+
40+
// EXT
41+
'TEAM_SECURITY_DISABLE_MESSAGE' => 'Please remove “ext.php” from the filesystem, purge the board cache, and try again.',
3942
));

0 commit comments

Comments
 (0)