/[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.41.2.4, Fri Oct 19 00:11:18 2007 UTC revision 1.41.2.5, Wed Jan 30 20:52:04 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: karma.module,v 1.41.2.3 2007/10/18 23:57:46 mcarbone Exp $  // $Id: karma.module,v 1.41.2.4 2007/10/19 00:11:18 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.41.2.4  
changed lines
  Added in v.1.41.2.5

  ViewVC Help
Powered by ViewVC 1.1.2