Gentoo Archives: gentoo-commits

From: "Tom Knight (tomk)" <tomk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in forums/htdocs/stat_modules/admin_statistics: module.php
Date: Wed, 12 Sep 2007 23:13:59
Message-Id: E1IVbID-0006AZ-Ig@stork.gentoo.org
1 tomk 07/09/12 23:06:45
2
3 Modified: module.php
4 Log:
5 Made DB stats work with mysql 5
6
7 Revision Changes Path
8 1.3 forums/htdocs/stat_modules/admin_statistics/module.php
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/stat_modules/admin_statistics/module.php?rev=1.3&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/stat_modules/admin_statistics/module.php?rev=1.3&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/forums/htdocs/stat_modules/admin_statistics/module.php?r1=1.2&r2=1.3
13
14 Index: module.php
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/stat_modules/admin_statistics/module.php,v
17 retrieving revision 1.2
18 retrieving revision 1.3
19 diff -u -r1.2 -r1.3
20 --- module.php 16 Apr 2006 22:20:37 -0000 1.2
21 +++ module.php 12 Sep 2007 23:06:45 -0000 1.3
22 @@ -121,7 +121,7 @@
23 $row = $db->sql_fetchrow($result);
24 $version = $row['mysql_version'];
25
26 - if( preg_match("/^(3\.23|4\.)/", $version) )
27 + if( preg_match("/^(3\.23|4\.|5\.)/", $version) )
28 {
29 $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname;
30
31
32
33
34 --
35 gentoo-commits@g.o mailing list