Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in forums/htdocs/admin: admin_forums.php
Date: Thu, 09 Sep 2010 17:10:18
Message-Id: 20100909171015.9324120051@flycatcher.gentoo.org
1 robbat2 10/09/09 17:10:15
2
3 Modified: admin_forums.php
4 Log:
5 This could be a replication failure source later, but unlikely for now, so just a TODO.
6
7 Revision Changes Path
8 1.6 forums/htdocs/admin/admin_forums.php
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/admin/admin_forums.php?rev=1.6&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/admin/admin_forums.php?rev=1.6&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/admin/admin_forums.php?r1=1.5&r2=1.6
13
14 Index: admin_forums.php
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/admin/admin_forums.php,v
17 retrieving revision 1.5
18 retrieving revision 1.6
19 diff -p -w -b -B -u -u -r1.5 -r1.6
20 --- admin_forums.php 30 Jul 2009 06:38:50 -0000 1.5
21 +++ admin_forums.php 9 Sep 2010 17:10:15 -0000 1.6
22 @@ -6,7 +6,7 @@
23 * copyright : (C) 2001 The phpBB Group
24 * email : support@×××××.com
25 *
26 - * $Id: admin_forums.php,v 1.5 2009/07/30 06:38:50 desultory Exp $
27 + * $Id: admin_forums.php,v 1.6 2010/09/09 17:10:15 robbat2 Exp $
28 *
29 ***************************************************************************/
30
31 @@ -439,6 +439,8 @@ if( !empty($mode) )
32
33 $next_order = ($parent_id == NO_PARENT) ? $max_order + 100 : $max_order + 10;
34
35 + // TODO: this is not replication-safe - robbat2 2010/09/09
36 + // Not fixing yet as creation of a forum is very rare.
37 $sql = "SELECT MAX(forum_id) AS max_id
38 FROM " . FORUMS_TABLE;
39 if( !$result = $db->sql_query($sql) )