| 1 |
<?php |
<?php |
| 2 |
// $Id: karma.module,v 1.40.2.1 2007/07/07 02:20:30 mcarbone Exp $ |
// $Id: karma.module,v 1.40.2.2 2007/10/12 23:53:34 mcarbone Exp $ |
| 3 |
|
|
| 4 |
include './'. drupal_get_path('module', 'karma') .'/karma.theme'; |
include './'. drupal_get_path('module', 'karma') .'/karma.theme'; |
| 5 |
|
|
| 219 |
} |
} |
| 220 |
|
|
| 221 |
function karma_comment(&$comment, $op) { |
function karma_comment(&$comment, $op) { |
| 222 |
if ($op == 'view' && arg(1) != 'reply' && user_access('view comment ratings')) { |
if ($op == 'view' && arg(1) != 'reply' && arg(1) != 'edit' && user_access('view comment ratings')) { |
| 223 |
$rating_form = _karma_rating_form('comment', $comment); |
$rating_form = _karma_rating_form('comment', $comment); |
| 224 |
theme('add_style', drupal_get_path('module', 'karma') .'/karma.css'); |
theme('add_style', drupal_get_path('module', 'karma') .'/karma.css'); |
| 225 |
drupal_add_js(drupal_get_path('module', 'karma') .'/karma.js'); |
drupal_add_js(drupal_get_path('module', 'karma') .'/karma.js'); |