From a8c22829d8e8845cd4ddf4ef8b61a1ed79edfffc Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 12 Mar 2018 22:57:42 +0100 Subject: Imported from the SVN repository http://svn.wolffelaar.nl/wsvn/phpbb/branches/jessie/ Signed-off-by: Olivier Gayot --- debian/patches/012_disable_version_check.patch | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 debian/patches/012_disable_version_check.patch (limited to 'debian/patches/012_disable_version_check.patch') diff --git a/debian/patches/012_disable_version_check.patch b/debian/patches/012_disable_version_check.patch new file mode 100644 index 0000000..a08c8c6 --- /dev/null +++ b/debian/patches/012_disable_version_check.patch @@ -0,0 +1,64 @@ +Author: Jeroen van Wolffelaar +Description: Disables upstream version check. +Last-Update: 2013-09-28 +--- a/includes/acp/acp_update.php ++++ b/includes/acp/acp_update.php +@@ -32,7 +32,7 @@ + + $this->tpl_name = 'acp_update'; + $this->page_title = 'ACP_VERSION_CHECK'; +- ++/* + // Get current and latest version + $errstr = ''; + $errno = 0; +@@ -68,20 +68,20 @@ + $db->sql_freeresult($result); + + $current_version = (!empty($version_update_from)) ? $version_update_from : $config['version']; +- ++*/ + $template->assign_vars(array( +- 'S_UP_TO_DATE' => phpbb_version_compare($latest_version, $config['version'], '<='), +- 'S_UP_TO_DATE_AUTO' => phpbb_version_compare($latest_version, $current_version, '<='), ++ 'S_UP_TO_DATE' => true, ++ 'S_UP_TO_DATE_AUTO' => true, + 'S_VERSION_CHECK' => true, + 'U_ACTION' => $this->u_action, + 'U_VERSIONCHECK_FORCE' => append_sid($this->u_action . '&versioncheck_force=1'), + +- 'LATEST_VERSION' => $latest_version, +- 'CURRENT_VERSION' => $config['version'], +- 'AUTO_VERSION' => $version_update_from, ++ 'LATEST_VERSION' => 'See Debian Packages', ++ 'CURRENT_VERSION' => PHPBB_VERSION, ++ 'AUTO_VERSION' => 'See Debian Packages', + 'NEXT_FEATURE_VERSION' => $next_feature_version, + +- 'UPDATE_INSTRUCTIONS' => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $announcement_url, $update_link), ++ 'UPDATE_INSTRUCTIONS' => 'You are using the Debian package of phpBB. Check packages.debian.org for updates.', + 'UPGRADE_INSTRUCTIONS' => $next_feature_version ? $user->lang('UPGRADE_INSTRUCTIONS', $next_feature_version, $next_feature_announcement_url) : false, + )); + } +--- a/includes/acp/acp_main.php ++++ b/includes/acp/acp_main.php +@@ -405,7 +405,7 @@ + 'L_PHP_VERSION_OLD' => sprintf($user->lang['PHP_VERSION_OLD'], '', ''), + )); + } +- ++/* + $latest_version_info = false; + if (($latest_version_info = obtain_latest_version_info(request_var('versioncheck_force', false))) === false) + { +@@ -419,6 +419,10 @@ + 'S_VERSION_UP_TO_DATE' => phpbb_version_compare(trim($latest_version_info[0]), $config['version'], '<='), + )); + } ++*/ ++ $template->assign_vars(array( ++ 'S_VERSION_UP_TO_DATE' => true, ++ )); + + // Get forum statistics + $total_posts = $config['num_posts']; -- cgit v1.2.3