--- globalredirect.module	2011-02-11 13:44:33.000000000 +0100
+++ globalredirect.new.module	2011-02-11 13:44:24.000000000 +0100
@@ -79,12 +79,12 @@ function globalredirect_init() {
 
   // Let the language_url_rewrite do it's magic, if preset.
   // TODO: Is this needed anymore?
-  if (function_exists('language_url_rewrite')) {
+  if (function_exists('locale_language_url_rewrite_url')) {
     // Note 1 : the language_url_rewrite() takes path (by reference) as the
     //          first argument but does not use it at all
     // Note 2 : We use $request_path here as we want the path in an untouched
     //          form (current_path() gets modified by core)
-    language_url_rewrite($request_path, $options);
+    locale_language_url_rewrite_url($request_path, $options);
   }
   $prefix = rtrim($options['prefix'], '/');
 
