/[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.40.2.2, Fri Oct 12 23:53:34 2007 UTC revision 1.40.2.3, Wed Jan 30 20:50:45 2008 UTC
# Line 1  Line 1 
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    
# Line 219  function karma_update_comment_statistics Line 219  function karma_update_comment_statistics
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');

Legend:
Removed from v.1.40.2.2  
changed lines
  Added in v.1.40.2.3

  ViewVC Help
Powered by ViewVC 1.1.2