Skip to content
Snippets Groups Projects
Commit 018cc327 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #481706 by Dave Reid: path_node_delete() can leave abandoned URL aliases.

parent 297b70e8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment