Index: modules/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system.module,v retrieving revision 1.235 diff -u -r1.235 system.module --- modules/system.module 18 Sep 2005 10:37:57 -0000 1.235 +++ modules/system.module 20 Sep 2005 18:56:54 -0000 @@ -71,7 +71,7 @@ $items[] = array('path' => 'admin', 'title' => t('administer'), 'access' => user_access('access administration pages'), - 'callback' => 'watchdog_overview', + 'callback' => '_system_adminpage', 'weight' => 9); // Themes: @@ -178,6 +178,16 @@ return $zones; } +function _system_adminpage () { + menu_set_active_item(variable_get('site_adminpage', 'admin/logs')); + $return = menu_execute_active_handler(); + + if (empty($return)) { + drupal_set_title(t('Page not found')); + } + print theme('page', $return); +} + function system_view_general() { // General settings: $group = form_textfield(t('Name'), 'site_name', variable_get('site_name', 'drupal'), 60, 70, t('The name of this web site.')); @@ -187,6 +197,7 @@ $group .= form_textarea(t('Footer message'), 'site_footer', variable_get('site_footer', ''), 60, 5, t('This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages.')); $group .= form_textfield(t('Anonymous user'), 'anonymous', variable_get('anonymous', 'Anonymous'), 60, 70, t('The name used to indicate anonymous users.')); $group .= form_textfield(t('Default front page'), 'site_frontpage', variable_get('site_frontpage', 'node'), 60, 70, t('The home page displays content from this relative URL. If you are not using clean URLs, specify the part after "?q=". If unsure, specify "node".')); + $group .= form_textfield(t('Default admin front page'), 'site_adminpage', variable_get('site_adminpage', 'admin/logs'), 60, 70, t('The admin home page displays content from this relative URL. If you are not using clean URLs, specify the part after "?q=". If unsure, specify "admin/logs".')); // We check for clean URL support using an image on the client side. $group .= form_radios(t('Clean URLs'), 'clean_url', variable_get('clean_url', 0), array(t('Disabled'), t('Enabled')), t('This option makes Drupal emit clean URLs (i.e. without ?q= in the URL). You\'ll need ModRewrite support for this to work. See the .htaccess file in Drupal\'s top-level directory for more information.'));