| 1 |
<?php |
<?php |
| 2 |
// $Id: cocomment.module,v 1.6 2008/01/17 10:13:23 sanduhrs Exp $ |
// $Id: cocomment.module,v 1.7 2008/01/17 10:29:45 sanduhrs Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* CoComment integration |
* CoComment integration |
| 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 |
} |
} |