~ubuntu-branches/ubuntu/precise/phpbb3/precise

« back to all changes in this revision

Viewing changes to debian/patches/015_disable_version_check.diff

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2008-04-22 01:13:42 UTC
  • Revision ID: james.westby@ubuntu.com-20080422011342-2y2f8gy0f6oqk5uc
Tags: 3.0.1-1
* New upstream bugfix release.
* Add Portuguese debconf translation thanks to Miguel Figueiredo
  (Closes: #470112)
* Fix PostgreSQL schema to strip out hash-style comments
  (Closes: #461117).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -Nur phpBB3.orig/includes/acp/acp_update.php phpBB3/includes/acp/acp_update.php
 
2
--- phpBB3.orig/includes/acp/acp_update.php     2007-12-12 20:12:47.000000000 +0100
 
3
+++ phpBB3/includes/acp/acp_update.php  2008-01-19 21:16:39.000000000 +0100
 
4
@@ -33,7 +33,7 @@
 
5
                $this->tpl_name = 'acp_update';
 
6
                $this->page_title = 'ACP_VERSION_CHECK';
 
7
 
 
8
-               // Get current and latest version
 
9
+/*             // Get current and latest version
 
10
                $errstr = '';
 
11
                $errno = 0;
 
12
 
 
13
@@ -62,20 +62,19 @@
 
14
 
 
15
                $up_to_date_automatic = (version_compare(str_replace('rc', 'RC', strtolower($current_version)), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
 
16
                $up_to_date = (version_compare(str_replace('rc', 'RC', strtolower($config['version'])), str_replace('rc', 'RC', strtolower($latest_version)), '<')) ? false : true;
 
17
-
 
18
+*/
 
19
                $template->assign_vars(array(
 
20
-                       'S_UP_TO_DATE'          => $up_to_date,
 
21
-                       'S_UP_TO_DATE_AUTO'     => $up_to_date_automatic,
 
22
+                       'S_UP_TO_DATE'          => true,
 
23
+                       'S_UP_TO_DATE_AUTO'     => true,
 
24
                        'S_VERSION_CHECK'       => true,
 
25
                        'U_ACTION'                      => $this->u_action,
 
26
 
 
27
-                       'LATEST_VERSION'        => $latest_version,
 
28
-                       'CURRENT_VERSION'       => $config['version'],
 
29
-                       'AUTO_VERSION'          => $version_update_from,
 
30
+                       'LATEST_VERSION'        => 'See <a href="http://packages.debian.org/phpbb3">Debian Packages</a>',
 
31
+                       'CURRENT_VERSION'       => PHPBB_VERSION,
 
32
+                       'AUTO_VERSION'          => 'See <a href="http://packages.debian.org/phpbb3">Debian Packages</a>',
 
33
 
 
34
-                       'UPDATE_INSTRUCTIONS'   => sprintf($user->lang['UPDATE_INSTRUCTIONS'], $announcement_url, $update_link),
 
35
+                       'UPDATE_INSTRUCTIONS'   => 'You are using the Debian package of phpBB. Check <a href="http://packages.debian.org/phpbb3">packages.debian.org</a> for updates.',
 
36
                ));
 
37
        }
 
38
 }
 
39
 
 
40
-?>
 
41
\ No newline at end of file