? customerror-readme-2.patch
? customerror-readme.patch
Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/customerror/README.txt,v
retrieving revision 1.7.2.3
diff -u -p -r1.7.2.3 README.txt
--- README.txt	17 Dec 2008 18:10:36 -0000	1.7.2.3
+++ README.txt	1 Oct 2009 18:42:36 -0000
@@ -47,15 +47,20 @@ option to login then redirect them to wh
 <?php
 global $user;
 if ($user->uid == 0) {
-  print '<p>If your user account has access to this page, please <a href="/user?' .
-    drupal_get_destination() . '">log</a>.</p>';
+  $output = '<p>';
+  $output .= t('If your user account has access to this page, please !message.',
+    array('!message' =>
+      l('log in', 'user', array('destination' => drupal_get_destination())),
+    )
+  );
+  $output .= '</p>';
+  print $output;
 }
 ?>
 
 That way when there's a 403 they get redirected back to the page they were trying to access.
 The above should be better refined to fit "best practices", such as doing this in a template.php
-rather than code stored in the database, and probably call l() or url() so it works when clean
-URL's are disabled.
+rather than code stored in the database.
 
 Thanks to: Andrew Berry (http://drupal.org/user/71291 deviantintegral).
 
@@ -71,7 +76,14 @@ Installation:
 2. Go to Administer -> Build -> Modules
    - Enable the customerror module, click on Save
 
-3. Configure the module:
+3. Configure Error reporting
+   - Go to Administer -> Site configuration -> Error reporting
+   - For 403 (access denied), enter the value:
+       customerror/403
+   - For 404 (not found), enter the value:
+       customerror/404
+
+4. Configure the module:
    - Go to Administer -> Site configuration -> Custom error
    - Enter any title and description you want for the 404 (not found)
      and 403 (access denied) pages.
@@ -79,13 +91,6 @@ Installation:
    - Ensure the Enable checkbox is checked. That sets or unsets the Error
      Reporting settings for you.
 
-4. Configure Error reporting
-   - Go to Administer -> Site configuration -> Error reporting
-   - For 403 (access denied), enter the value:
-       customerror/403
-   - For 40 (not found), enter the value:
-       customerror/404
-
 5. Test your error pages.
    - Copy your present admin page url.
    - Try to go to a non-existent Drupal page on your site.
