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

Diff of /contributions/modules/karma/karma.module

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

revision 1.45, Fri Oct 19 00:11:03 2007 UTC revision 1.46, Wed Jan 30 20:50:26 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: karma.module,v 1.44 2007/10/18 23:58:56 mcarbone Exp $  // $Id: karma.module,v 1.45 2007/10/19 00:11:03 mcarbone Exp $
3    
4  include './'. drupal_get_path('module', 'karma') .'/karma.theme';  include './'. drupal_get_path('module', 'karma') .'/karma.theme';
5    
# Line 214  function karma_update_comment_statistics Line 214  function karma_update_comment_statistics
214  }  }
215    
216  function karma_comment(&$comment, $op) {  function karma_comment(&$comment, $op) {
217    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')) {
218      $rating_form = drupal_get_form('karma_rating_form_comment_'. $comment->cid, 'comment', $comment, $comment->cid);      $rating_form = drupal_get_form('karma_rating_form_comment_'. $comment->cid, 'comment', $comment, $comment->cid);
219      drupal_add_css(drupal_get_path('module', 'karma') .'/karma.css');      drupal_add_css(drupal_get_path('module', 'karma') .'/karma.css');
220      drupal_add_js(drupal_get_path('module', 'karma') .'/karma.js');      drupal_add_js(drupal_get_path('module', 'karma') .'/karma.js');

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.2