? path_alias_xt-790542.patch
Index: path.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/path.inc,v
retrieving revision 1.62
diff -u -p -r1.62 path.inc
--- path.inc	24 Apr 2010 15:11:27 -0000	1.62
+++ path.inc	5 May 2010 18:22:24 -0000
@@ -192,6 +192,9 @@ function drupal_cache_system_paths() {
  *   found.
  */
 function drupal_get_path_alias($path = NULL, $path_language = NULL) {
+  if (module_exists('path_alias_xt')) {
+       return path_alias_xt_get_path_alias($path, $path_language);
+  }
   // If no path is specified, use the current page's path.
   if ($path == NULL) {
     $path = $_GET['q'];
