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/includes: functions_post.php
Date: Mon, 31 Dec 2012 11:43:50
Message-Id: 20121231114334.C94612171F@flycatcher.gentoo.org
1 tomk 12/12/31 11:43:34
2
3 Modified: functions_post.php
4 Log:
5 trigger watched user e-mail when posts are edited
6
7 Revision Changes Path
8 1.22 forums/htdocs/includes/functions_post.php
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/includes/functions_post.php?rev=1.22&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/includes/functions_post.php?rev=1.22&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/forums/htdocs/includes/functions_post.php?r1=1.21&r2=1.22
13
14 Index: functions_post.php
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/forums/htdocs/includes/functions_post.php,v
17 retrieving revision 1.21
18 retrieving revision 1.22
19 diff -u -r1.21 -r1.22
20 --- functions_post.php 17 Jul 2011 14:36:00 -0000 1.21
21 +++ functions_post.php 31 Dec 2012 11:43:34 -0000 1.22
22 @@ -6,7 +6,7 @@
23 * copyright : (C) 2001 The phpBB Group
24 * email : support@×××××.com
25 *
26 - * $Id: functions_post.php,v 1.21 2011/07/17 14:36:00 tomk Exp $
27 + * $Id: functions_post.php,v 1.22 2012/12/31 11:43:34 tomk Exp $
28 *
29 *
30 ***************************************************************************/
31 @@ -784,10 +784,8 @@
32 }
33 }
34
35 - // TODO: do this if it's an edit too
36 -
37 // 2005-12-29 tomk - check user watches
38 - if (($mode == 'reply' || $mode == 'newtopic') && $board_config['allow_notifications'])
39 + if (($mode == 'reply' || $mode == 'newtopic' || $mode == 'editpost') && $board_config['allow_notifications'])
40 {
41 $sql = "SELECT u.user_id, u.user_email, u.user_lang
42 FROM " . USERS_WATCH_TABLE . " uw, " . USERS_TABLE . " u
43 @@ -810,7 +808,8 @@
44 WHERE ug.user_id = ".$row['user_id']. "
45 AND ug.user_pending = 0
46 AND a.group_id = ug.group_id
47 - AND a.forum_id = $forum_id";
48 + AND a.forum_id = $forum_id
49 + ORDER BY a.auth_mod DESC";
50
51 if ( !($result2 = $db->sql_query($sql)) )
52 {