Index: fivestar.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/fivestar.install,v retrieving revision 1.5.2.7 diff -u -r1.5.2.7 fivestar.install --- fivestar.install 1 Jul 2008 04:42:07 -0000 1.5.2.7 +++ fivestar.install 23 Jul 2008 15:42:56 -0000 @@ -1,10 +1,6 @@ = 6100) { + if (fivestar_update_version() >= 6100) { $ret[] = update_sql("UPDATE {system} SET weight = -1 WHERE type = 'module' AND name = 'fivestar'"); } return $ret; @@ -123,7 +132,7 @@ */ function fivestar_update_6103() { // Comment support was added in schema version 1. - if (FIVESTAR_VERSION >= 6100) { + if (fivestar_update_version() >= 6100) { // Enable the module, but don't run the install hook (tables already exist). if (module_exists('comment')) { module_rebuild_cache(); @@ -133,7 +142,7 @@ module_rebuild_cache(); } // If the comment table needs an update, run fivestar_comment_update_5100(). - if (FIVESTAR_VERSION < 6101) { + if (fivestar_update_version() < 6101) { module_load_install('fivestar_comment'); fivestar_comment_update_6100(); } @@ -146,7 +155,7 @@ */ function fivestar_update_6104() { // Previously ran as fivestar_update_5703 on Drupal 5. - if (FIVESTAR_VERSION >= 6100) { + if (fivestar_update_version() >= 6100) { $result = db_query("SELECT field_name, global_settings FROM {content_node_field} WHERE type = 'fivestar'"); while ($field = db_fetch_object($result)) { $settings = unserialize($field->global_settings);