diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-08 07:46:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-08 07:46:10 +0000 |
commit | 018cc32777bbd09a02b80d72aee89f9741a50153 (patch) | |
tree | 0874739cd07da4b03677e56f0ae26319177d2337 /modules/path | |
parent | 297b70e8ce4e2ce33cb08163daa0d88046f79218 (diff) | |
download | brdo-018cc32777bbd09a02b80d72aee89f9741a50153.tar.gz brdo-018cc32777bbd09a02b80d72aee89f9741a50153.tar.bz2 |
- Patch #481706 by Dave Reid: path_node_delete() can leave abandoned URL aliases.
Diffstat (limited to 'modules/path')
-rw-r--r-- | modules/path/path.module | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/path/path.module b/modules/path/path.module index ce18747e9..12530916d 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -208,13 +208,7 @@ function path_node_update($node) { * Implement hook_node_delete(). */ function path_node_delete($node) { - if (user_access('create url aliases') || user_access('administer url aliases')) { - $language = isset($node->language) ? $node->language : ''; - $path = 'node/' . $node->nid; - if (drupal_get_path_alias($path) != $path) { - path_set_alias($path); - } - } + path_set_alias('node/' . $node->nid); } /** |