Index: pathauto.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/pathauto/pathauto.install,v
retrieving revision 1.30
diff -u -p -r1.30 pathauto.install
--- pathauto.install	11 Jan 2011 19:55:39 -0000	1.30
+++ pathauto.install	3 Feb 2011 22:31:36 -0000
@@ -135,6 +135,26 @@ function pathauto_update_7004() {
 }
 
 /**
+ * Update old taxonomy tokens with their new names.
+ */
+function pathauto_update_7005() {
+  $variables = db_query('SELECT name FROM {variable} WHERE name LIKE :pattern OR name LIKE :pattern2', array(':pattern' => db_like('pathauto_taxonomy_term_') . '%' . db_like('pattern'), ':pattern2' => db_like('pathauto_forum_') . '%' . db_like('pattern')))->fetchCol();
+  foreach ($variables as $variable) {
+    $replacements = array(
+      '[vocabulary:name]' => '[term:vocabulary]',
+      '[term:catpath]' => '[term:name]',
+    );
+    $old_value = variable_get($variable);
+    if (is_string($old_value)) {
+      $new_value = str_replace(array_keys($replacements), array_values($replacements), $old_value);
+      if ($new_value != $old_value) {
+        variable_set($variable, $new_value);
+      }
+    }
+  }
+}
+
+/**
  * Build a list of Drupal 6 tokens and their Drupal 7 token names.
  */
 function _pathauto_upgrade_token_list() {
