mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10263] Call phpbb_version_compare() from includes/acp/acp_main.php
PHPBB3-10263
This commit is contained in:
parent
b0940f52e5
commit
7f56c05f24
1 changed files with 1 additions and 4 deletions
|
@ -415,11 +415,8 @@ class acp_main
|
||||||
{
|
{
|
||||||
$latest_version_info = explode("\n", $latest_version_info);
|
$latest_version_info = explode("\n", $latest_version_info);
|
||||||
|
|
||||||
$latest_version = str_replace('rc', 'RC', strtolower(trim($latest_version_info[0])));
|
|
||||||
$current_version = str_replace('rc', 'RC', strtolower($config['version']));
|
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'S_VERSION_UP_TO_DATE' => version_compare($current_version, $latest_version, '<') ? false : true,
|
'S_VERSION_UP_TO_DATE' => phpbb_version_compare(trim($latest_version_info[0]), $config['version'], '<='),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue