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

Diff of /contributions/modules/fivestar/fivestar.module

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

revision 1.28, Thu Oct 22 19:57:13 2009 UTC revision 1.29, Thu Oct 22 19:58:18 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fivestar.module,v 1.27 2009/07/01 04:04:16 quicksketch Exp $  // $Id: fivestar.module,v 1.28 2009/10/22 19:57:13 ezrag Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1278  function fivestar_views_value_text_handl Line 1278  function fivestar_views_value_text_handl
1278      return ceil(($value / 100) * $stars);      return ceil(($value / 100) * $stars);
1279    }    }
1280    else {    else {
1281      return round(($value / 100) * $stars, 1);      if ($field->options['set_precision']) {
1282          return round(($value / 100) * $stars, $field->options['precision']);
1283        }
1284        return ($value / 100) * $stars;
1285    }    }
1286  }  }
1287    

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.2