/[drupal]/contributions/modules/cocomment/cocomment.module
ViewVC logotype

Diff of /contributions/modules/cocomment/cocomment.module

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

revision 1.4.2.3, Thu Jan 17 10:29:13 2008 UTC revision 1.4.2.4, Thu Jan 17 11:25:37 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: cocomment.module,v 1.4.2.2 2008/01/17 10:12:42 sanduhrs Exp $  // $Id: cocomment.module,v 1.4.2.3 2008/01/17 10:29:13 sanduhrs Exp $
3    
4  /**  /**
5   * CoComment integration   * CoComment integration
# Line 18  function cocomment_menu($may_cache) { Line 18  function cocomment_menu($may_cache) {
18      //This is a workaround to reset $op to it's original value      //This is a workaround to reset $op to it's original value
19      //that has been changed by cocomment's enabler.js and prevents      //that has been changed by cocomment's enabler.js and prevents
20      //the comment submission      //the comment submission
21      if ($_POST['op'] == 'Submit Query') {      if ($_POST['form_id'] == 'comment_form') {
22        $_POST['op'] = t('Post comment');        if ($_POST['op'] != t('Preview comment') AND $_POST['op'] != t('Post comment')) {
23            $_POST['op'] = t('Post comment');
24          }
25      }      }
26    }    }
27  }  }

Legend:
Removed from v.1.4.2.3  
changed lines
  Added in v.1.4.2.4

  ViewVC Help
Powered by ViewVC 1.1.2