Index: url_alter.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/url_alter/url_alter.install,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 url_alter.install
--- url_alter.install	1 Nov 2009 21:52:19 -0000	1.1.2.6
+++ url_alter.install	19 Apr 2010 15:57:15 -0000
@@ -38,10 +38,22 @@ function url_alter_requirements($phase) 
       $requirement['value'] = $t('Overriding @function() successfully.', array('@function' => $function));
     }
     elseif (!url_alter_is_disabled()) {
+      // This is during an installation profile.
+      if (defined('MAINTENANCE_MODE') && constant('MAINTENANCE_MODE') == 'install') {
+        // Can't use the normal url() function during site installation.
+        $path = base_path() . 'admin/settings/url-alter';
+        // Make the message a little more clear.
+        $afterinstall = ' after the site installation is finished';
+      }
+      // Site already installed.
+      else {
+        $path = url('admin/settings/url-alter');
+        $afterinstall = '';
+      }
       $requirement['value'] = $t('Cannot override @function().', array('@function' => $function));
       $requirement['severity'] = REQUIREMENT_ERROR;
       $info = url_alter_get_function_info($function);
-      $requirement['description'] = $t("URL alter cannot override the function @function() because it is already defined (!location). Please comment out or remove the existing function and copy the function's body code into the <a href=\"@url-alter\">URL alter module's settings</a>.", array('@function' => $function, '!location' => $info->location ? $info->location : t("usually located in your site's settings.php file"), '@url-alter' => url('admin/settings/url-alter')));
+      $requirement['description'] = $t("URL alter cannot override the function @function() because it is already defined (!location). Please comment out or remove the existing function and copy the function's body code into the <a href=\"@url-alter\">URL alter module's settings</a>{$afterinstall}.", array('@function' => $function, '!location' => $info->location ? $info->location : t("usually located in your site's settings.php file"), '@url-alter' => $path));
     }
     $requirements['url_alter_' . $function] = $requirement;
   }
