--- pathauto_taxonomy.inc 2008-08-28 12:16:31.000000000 -0400 +++ pathauto_taxonomy-mod.inc 2010-01-06 15:45:06.000000000 -0500 @@ -89,6 +89,16 @@ function taxonomy_pathauto_bulkupdate() $count += _taxonomy_pathauto_alias($category, 'bulkupdate'); } + //also check whether the taxonomy feed alias exists yet + $query = "SELECT tid, vid, name, src, dst FROM {term_data} LEFT JOIN {url_alias} ON CONCAT('taxonomy/term/', CAST(tid AS CHAR), '/".variable_get('pathauto_taxonomy_applytofeeds', '')."') = src WHERE src IS NULL AND vid <> %d ". $vid_where; + $result = db_query_range($query, $query_args, 0, variable_get('pathauto_max_bulk_update', 50)); + + $count_feed = 0; + $placeholders = array(); + while ($category = db_fetch_object($result)) { + _taxonomy_pathauto_alias($category, 'bulkupdate'); + } + drupal_set_message(format_plural($count, 'Bulk generation of terms completed, one alias generated.', 'Bulk generation of terms completed, @count aliases generated.'));