Skip to content

Commit 791b5b3

Browse files
authored
Merge pull request #123 from VSEphpbb/fixes
Fix error messages
2 parents 5173508 + 179cd0f commit 791b5b3

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

includes/class_qi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ public static function msg_handler($errno, $msg_text, $errfile, $errline)
335335

336336
$error_out = file_get_contents($quickinstall_path . 'style/error.html');
337337
$error_out = str_replace(
338-
array('{L_QUICKINSTALL}', '{QI_PATH}', '{MSG_TITLE}', '{MSG_EXPLAIN}', '{MSG_TEXT}', '{SETTINGS_FORM}', '{RETURN_LINKS}', '{QI_VERSION}'),
339-
array($user->lang['QUICKINSTALL'], $quickinstall_path, $msg_title, '', $msg_text, '', $l_return_index, QI_VERSION),
338+
array('{L_QUICKINSTALL}', '{QI_PATH}', '{MSG_TITLE}', '{MSG_EXPLAIN}', '{MSG_TEXT}', '{SETTINGS_FORM}', '{RETURN_LINKS}', '{QI_VERSION}', '{L_FOR_PHPBB_VERSIONS}', '{L_POWERED_BY_PHPBB}'),
339+
array($user->lang['QUICKINSTALL'], $quickinstall_path, $msg_title, '', $msg_text, '', $l_return_index, QI_VERSION, $user->lang['FOR_PHPBB_VERSIONS'], $user->lang['POWERED_BY_PHPBB']),
340340
$error_out
341341
);
342342
if (self::is_ajax())

includes/qi_functions.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,20 +243,24 @@ function gen_error_msg($msg_text, $msg_title = 'General Error', $msg_explain = '
243243
$l_return_index = sprintf($user->lang['GO_QI_MAIN'], '<a href="' . qi::url('main') . '">', '</a> &bull; ');
244244
$l_return_index .= sprintf($user->lang['GO_QI_SETTINGS'], '<a href="' . qi::url('settings') . '">', '</a>');
245245
$l_quickinstall = $user->lang['QUICKINSTALL'];
246+
$l_for_phpbb_versions = $user->lang['FOR_PHPBB_VERSIONS'];
247+
$l_powered_by_phpbb = $user->lang['POWERED_BY_PHPBB'];
246248
}
247249
else
248250
{
249251
$l_return_index = '<a href="' . qi::url('main') . '">Go to QuickInstall main page</a> &bull; ';
250252
$l_return_index .= '<a href="' . qi::url('settings') . '">Go to settings</a>';
251253
$l_quickinstall = 'phpBB QuickInstall';
254+
$l_for_phpbb_versions = 'for phpBB 3.0 - 4.0';
255+
$l_powered_by_phpbb = 'Powered by phpBB<sup>&reg;</sup> Forum Software &copy; <a href="https://www.phpbb.com/">phpBB Limited</a>';
252256
}
253257

254258
phpbb_functions::send_status_line(503, 'Service Unavailable');
255259

256260
$error_out = file_get_contents($quickinstall_path . 'style/error.html');
257261
$error_out = str_replace(
258-
array('{L_QUICKINSTALL}', '{QI_PATH}', '{MSG_TITLE}', '{MSG_EXPLAIN}', '{MSG_TEXT}', '{SETTINGS_FORM}', '{RETURN_LINKS}', '{QI_VERSION}'),
259-
array($l_quickinstall, $quickinstall_path, $msg_title, $msg_explain, $msg_text, $settings_form, $l_return_index, QI_VERSION),
262+
array('{L_QUICKINSTALL}', '{QI_PATH}', '{MSG_TITLE}', '{MSG_EXPLAIN}', '{MSG_TEXT}', '{SETTINGS_FORM}', '{RETURN_LINKS}', '{QI_VERSION}', '{L_FOR_PHPBB_VERSIONS}', '{L_POWERED_BY_PHPBB}'),
263+
array($l_quickinstall, $quickinstall_path, $msg_title, $msg_explain, $msg_text, $settings_form, $l_return_index, QI_VERSION, $l_for_phpbb_versions, $l_powered_by_phpbb),
260264
$error_out
261265
);
262266
echo $error_out;

0 commit comments

Comments
 (0)