/[drupal]/contributions/sandbox/junyor/import/blogger/4-5/import-comment.patch
ViewVC logotype

Contents of /contributions/sandbox/junyor/import/blogger/4-5/import-comment.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Fri Sep 9 11:33:23 2005 UTC (4 years, 2 months ago) by ax
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-patch
changed k-option to -kkv
1 Index: modules/comment.module
2 ===================================================================
3 RCS file: /cvs/drupal/drupal/modules/comment.module,v
4 retrieving revision 1.347.2.2
5 diff -u -F^f -r1.347.2.2 comment.module
6 --- modules/comment.module 8 Apr 2005 13:35:27 -0000 1.347.2.2
7 +++ modules/comment.module 17 Apr 2005 18:06:03 -0000
8 @@ -629,7 +629,9 @@ function comment_post($edit) {
9
10
11 $edit['cid'] = db_next_id('{comments}_cid');
12 - $edit['timestamp'] = time();
13 + if (!$edit['timestamp']) {
14 + $edit['timestamp'] = time();
15 + }
16
17 if ($edit['uid'] = $user->uid) {
18 $edit['name'] = $user->name;
19 @@ -657,7 +659,7 @@ function comment_post($edit) {
20 drupal_goto('node/'. $edit['nid']);
21 }
22 else {
23 - drupal_goto('node/'. $edit['nid'] .'#comment-'. $edit['cid']);
24 + // drupal_goto('node/'. $edit['nid'] .'#comment-'. $edit['cid']);
25 }
26 }
27 else {

  ViewVC Help
Powered by ViewVC 1.1.2