# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: pathauto.inc
--- pathauto.inc Base (BASE)
+++ pathauto.inc Locally Modified (Based On LOCAL)
@@ -71,7 +71,7 @@
     path_redirect_delete(array('path' => $alias, 'redirect' => $src));
 
     // If there still is this alias used in path_redirect, then create a different alias
-    $redirect_rid = db_result(db_query_range("SELECT rid FROM {path_redirect} WHERE path = '%s'", $alias, 0, 1));
+    $redirect_rid = db_result(db_query_range("SELECT rid FROM {path_redirect} WHERE source = '%s'", $alias, 0, 1));
   }
   if ($alias_pid || !empty($redirect_rid)) {
     return TRUE;
@@ -405,7 +405,7 @@
     if (variable_get('pathauto_update_action', 2) == 3 && function_exists('path_redirect_save')) {
       if (!empty($old_alias)) {
         $redirect = array(
-          'path' => $old_alias,
+          'source' => $old_alias,
           'redirect' => $src,
         );
         path_redirect_save($redirect);
