Index: front/front_page.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/front/front_page.info,v
retrieving revision 1.12
diff -u -p -r1.12 front_page.info
--- front/front_page.info	18 Jun 2007 22:53:44 -0000	1.12
+++ front/front_page.info	14 Mar 2008 19:35:01 -0000
@@ -6,3 +6,4 @@ package = Administration
 ; Information added by drupal.org packaging script on 2007-01-20
 project = "front"
 
+core = 6.x
Index: front/front_page.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/front/front_page.module,v
retrieving revision 1.74
diff -u -p -r1.74 front_page.module
--- front/front_page.module	15 Aug 2007 11:25:22 -0000	1.74
+++ front/front_page.module	14 Mar 2008 19:35:02 -0000
@@ -33,30 +33,28 @@ function front_page_help($section) {
       return  t('<p>Setup custom front pages for your site. Click on the option to expand the form and customise your settings.</p><p><em>Anonymous User</em> = visitor not logged in  | <em>Authenticated User</em> = visitor who is logged in</p>') . $special_note;
    }
 }
+
 /**
- * this function sets the necessary paths etc. so drupal
- * knows where to find the front_page
+ * This function sets the necessary paths etc., so drupal
+ * knows where to find the front page.
  */
-function front_page_menu($may_cache) {
-  $items = array();
-  if ($may_cache) {
-   $items[] = array('path' => 'admin/settings/front',
-      'title' => t('Advanced front page settings'),
-      'description' => t('Specify a unique layout or splash page based on role type - override your HOME and breadcrumb links - display a custom mission style notice for users who haven\'t visited in a while - disable site and display a \'temporarily offline\' message.'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => 'front_page_admin',
-      'access' => user_access('administer menu'));
-   $items[] = array(
-      'path' => 'front_page',
-      'title' => t(''),
-      'callback' => 'front_page',
-      'access' => true,
+function front_page_menu() {
+   $items['admin/settings/front'] = array(
+      'title' => 'Advanced front page settings',
+      'description' => 'Specify a unique layout or splash page based on role type - override your HOME and breadcrumb links - display a custom mission style notice for users who haven\'t visited in a while - disable site and display a \'temporarily offline\' message.',
+      'page callback' => 'drupal_get_form',
+      'page arguments' => array('front_page_admin'),
+      'access arguments' => array('administer menu'));
+   $items['front_page'] = array(
+      'title' => '',
+      'page callback' => 'front_page',
+      'access arguments' => array('access content'),
       'type' => MENU_SUGGESTED_ITEM);
-      }
   return $items;
 }
+
 /**
- * this function sets up the admin/build/front_page settings page
+ * This function sets up the admin/build/front_page settings page.
  *
  */
 function front_page_admin() {
@@ -165,7 +163,7 @@ function front_page_admin() {
     '#title' => t('Site maintenance'),
     '#default_value' => variable_get('site_offline', 0),
     '#options' => array(t('Online'), t('Off-line')),
-    '#description' => t('When set to "Online", all visitors will be able to browse your site normally. When set to "Off-line", only users with the "administer site configuration" permission will be able to access your site to perform maintenance; all other visitors will see the site off-line message configured below. Authorized users can log in during "Off-line" mode directly via the <a href="@user-login">user login</a> page.', array('@user-login' => url('user'))),
+    '#description' => t('When set to "Online", all visitors will be able to browse your site normally. When set to "Off-line", only users with the "administer site configuration" permission will be able to access your site to perform maintenance; all other visitors will see the site off-line message configured below. Authorized users can log in during "Off-line" mode directly via the <a href="@user-login">user login</a> page.', array('@user-login' => url('user',array('query' => drupal_get_destination())))),
   );
 
   $form['front_offline']['site_offline_message'] = array(
@@ -227,7 +225,7 @@ function front_page_admin() {
     '#default_value' => variable_get('front_page_breadcrumb_redirect', ''),
     '#cols' => 20, '#rows' => 1,
     '#description' => t('Specify where the user should be redirected to. An example would be <em>node/12</em>. Leave blank when you\'re not using HOME redirect.'),
-    '#field_prefix' => url(null, null, null, true) . (variable_get('clean_url', 0) ? '' : '?q=')
+    '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=')  
   );
 
   $form['site'] = array(
@@ -243,7 +241,7 @@ function front_page_admin() {
     '#default_value' => variable_get('site_frontpage', 'node'),
     '#size' => 40,
     '#description' => t('Change this setting to <em>front_page</em> to activate your front page settings.'),
-    '#field_prefix' => url(null, null, null, true) . (variable_get('clean_url', 0) ? '' : '?q=')
+    '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=')
   );
 
 
