Skip to content

Commit

Permalink
pass db type through sprintf
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Andrés <[email protected]>
  • Loading branch information
DiegoAndresCortes committed Jan 16, 2024
1 parent fc6b11d commit a83a0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ function DatabaseSettings()
// Do they meet the install requirements?
// @todo Old client, new server?
if (version_compare($databases[Config::$db_type]['version'], preg_replace('~^\D*|\-.+?$~', '', $databases[Config::$db_type]['version_check']())) > 0) {
$incontext['error'] = Lang::$txt['error_db_too_low'];
$incontext['error'] = sprintf(Lang::$txt['error_db_too_low'], $databases[Config::$db_type]['name']);

return false;
}
Expand Down

0 comments on commit a83a0e7

Please sign in to comment.