1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 15:57:45 +02:00

[ticket/11467] Add language variables for extension exception messages

Remove hard-coded messages and add language variables for extension
exception messages.

PHPBB3-11467
This commit is contained in:
n-aleha
2014-05-12 01:00:59 +03:00
parent 305be2ae64
commit 031273de72
7 changed files with 37 additions and 20 deletions

View File

@@ -70,7 +70,7 @@ class acp_extensions
// If they've specified an extension, let's load the metadata manager and validate it.
if ($ext_name)
{
$md_manager = new \phpbb\extension\metadata_manager($ext_name, $config, $phpbb_extension_manager, $template, $phpbb_root_path);
$md_manager = new \phpbb\extension\metadata_manager($ext_name, $config, $phpbb_extension_manager, $template, $user, $phpbb_root_path);
try
{

View File

@@ -3030,7 +3030,7 @@ function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port
}
else if (stripos($line, '404 not found') !== false)
{
$errstr = $user->lang('FILE_NOT_FOUND', $filename);
$errstr = $user->lang('FILE_NOT_FOUND', $filename);
return false;
}
}