--- common.inc 11 Apr 2005 22:50:41 -0000 1.434.2.3 +++ common.inc 5 May 2005 01:47:32 -0000 @@ -65,18 +65,12 @@ } /** - * Regenerate the path map from the information in the database. - */ -function drupal_rebuild_path_map() { - drupal_get_path_map('rebuild'); -} - -/** * Given a path alias, return the internal path it represents. */ function drupal_get_normal_path($path) { - if (($map = drupal_get_path_map()) && isset($map[$path])) { - return $map[$path]; + $result = db_query("SELECT src FROM {url_alias} WHERE dst='%s'", $path); + if ($data = db_fetch_object($result)) { + return $data->src; } elseif (function_exists('conf_url_rewrite')) { return conf_url_rewrite($path, 'incoming');