? 244757_6_pathauto_alert_user_unique.patch
? 248031-pathauto-4-stop_creating_table.patch
? 248031-pathauto-6-stop_creating_table.patch
? i18n-ascii.txt
? pathauto_termalias2.patch
Index: pathauto.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.inc,v
retrieving revision 1.1.2.38
diff -u -p -r1.1.2.38 pathauto.inc
--- pathauto.inc	5 Apr 2008 18:51:02 -0000	1.1.2.38
+++ pathauto.inc	5 May 2008 13:51:49 -0000
@@ -284,11 +284,17 @@ function pathauto_create_alias($module, 
   // If the alias already exists, generate a new, hopefully unique, variant
   $separator = variable_get('pathauto_separator', '-');
   if (_pathauto_alias_exists($alias, $src)) {
+    $original_alias = $alias;
     for ($i = 0; _pathauto_alias_exists(drupal_substr($alias, 0, $maxlength - strlen($i)) . $separator . $i, $src); $i++) {
     }
     // Make room for the sequence number
     $alias = drupal_substr($alias, 0, $maxlength - strlen($i));
     $alias = $alias . $separator . $i;
+    // If verbose is on, alert the user why this happened
+    if ($verbose) {
+      drupal_set_message(t('The automatically generated alias %original_alias conflicted with an existing alias.  Alias changed to %alias.', 
+        array('%original_alias' => $original_alias, '%alias' => $alias)));
+    }
   }
 
   // If $pid is NULL, a new alias is created - otherwise, the existing
