Index: common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.746
diff -u -4 -p -r1.746 common.inc
--- common.inc	22 Dec 2007 23:24:24 -0000	1.746
+++ common.inc	7 Jan 2008 17:40:00 -0000
@@ -1314,9 +1314,8 @@ function url($path = NULL, $options = ar
   if (!isset($options['base_url'])) {
     // The base_url might be rewritten from the language rewrite in domain mode.
     $options['base_url'] = $base_url;
   }
-  $base = $options['absolute'] ? $options['base_url'] .'/' : base_path();
 
   // Preserve the original path before aliasing.
   $original_path = $path;
 
@@ -1335,8 +1334,10 @@ function url($path = NULL, $options = ar
     // Will be empty if there is no language prefix.
     $path = trim($options['prefix'], '/');
   }
 
+  $base = $options['absolute'] ? $options['base_url'] .'/' : base_path();
+
   if ($clean_url) {
     // With Clean URLs.
     if ($options['query']) {
       return $base . $path .'?'. $options['query'] . $options['fragment'];
