File: 012_disable_version_check.patch

package info (click to toggle)
phpbb3 3.0.7-PL1-4%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 58,756 kB
  • ctags: 28,744
  • sloc: php: 457,643; sql: 9,245; sh: 521; makefile: 59; perl: 32
file content (40 lines) | stat: -rw-r--r-- 1,731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Author: Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
Description: Disables upstream version check.
--- a/includes/acp/acp_update.php
+++ b/includes/acp/acp_update.php
@@ -33,7 +33,7 @@
 		$this->tpl_name = 'acp_update';
 		$this->page_title = 'ACP_VERSION_CHECK';
 
-		// Get current and latest version
+/*		// Get current and latest version
 		$errstr = '';
 		$errno = 0;
 
@@ -63,19 +63,19 @@
 
 		$up_to_date_automatic = (version_compare(str_replace('rc', 'RC', strtolower($current_version)), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
 		$up_to_date = (version_compare(str_replace('rc', 'RC', strtolower($config['version'])), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
-
+*/
 		$template->assign_vars(array(
-			'S_UP_TO_DATE'		=> $up_to_date,
-			'S_UP_TO_DATE_AUTO'	=> $up_to_date_automatic,
+			'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 . '&amp;versioncheck_force=1'),
 
-			'LATEST_VERSION'	=> $latest_version,
-			'CURRENT_VERSION'	=> $config['version'],
-			'AUTO_VERSION'		=> $version_update_from,
+			'LATEST_VERSION'	=> 'See <a href="http://packages.debian.org/phpbb3">Debian Packages</a>',
+			'CURRENT_VERSION'	=> PHPBB_VERSION,
+			'AUTO_VERSION'		=> 'See <a href="http://packages.debian.org/phpbb3">Debian Packages</a>',
 
-			'UPDATE_INSTRUCTIONS'	=> sprintf($user->lang['UPDATE_INSTRUCTIONS'], $announcement_url, $update_link),
+			'UPDATE_INSTRUCTIONS'	=> 'You are using the Debian package of phpBB. Check <a href="http://packages.debian.org/phpbb3">packages.debian.org</a> for updates.',
 		));
 	}
 }