From a243145d3fef5996394518a2a3a9f8254ed2202a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 16 May 2007 13:45:17 +0000 Subject: - Patch #137767 by chx and pwolanin: multiple menu support. --- modules/path/path.module | 3 --- 1 file changed, 3 deletions(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index d6beffcf1..59920c7d5 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -128,13 +128,11 @@ function path_set_alias($path = NULL, $alias = NULL, $pid = NULL, $language = '' if ($path && !$alias) { // Delete based on path db_query("DELETE FROM {url_alias} WHERE src = '%s' AND language = '%s'", $path, $language); - db_query("UPDATE {menu} SET link_path = path WHERE path = '%s'", $path); drupal_clear_path_cache(); } else if (!$path && $alias) { // Delete based on alias db_query("DELETE FROM {url_alias} WHERE dst = '%s' AND language = '%s'", $alias, $language); - db_query("UPDATE {menu} SET link_path = path WHERE link_path = '%s'", $alias); drupal_clear_path_cache(); } else if ($path && $alias) { @@ -170,7 +168,6 @@ function path_set_alias($path = NULL, $alias = NULL, $pid = NULL, $language = '' } if ($alias_count == 0 || $path_count == 0) { drupal_clear_path_cache(); - db_query("UPDATE {menu} SET link_path = '%s' WHERE path = '%s'", $alias, $path); } } } -- cgit v1.2.3