From 04f320cb011f386d11672547c17965a7bd16ef35 Mon Sep 17 00:00:00 2001 From: Richard McGirr Date: Tue, 5 Apr 2016 06:57:32 -0400 Subject: [ticket/13716] Check phpBB version against config version Display a warning in the ACP if the version constant (files) does not match the phpbb_config version (often indicating that the database updates hasn't been run) PHPBB3-13716 --- phpBB/includes/acp/acp_main.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/includes/acp/acp_main.php') diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index afa0f1ea61..848cafeb67 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -453,6 +453,12 @@ class acp_main $template->assign_var('S_VERSION_UP_TO_DATE', true); } + // Incomplete update? + if (phpbb_version_compare($config['version'], PHPBB_VERSION, '<')) + { + $template->assign_var('S_UPDATE_INCOMPLETE', true); + } + /** * Notice admin * -- cgit v1.2.1