? modules/devel.module Index: modules/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system.module,v retrieving revision 1.229 diff -u -r1.229 system.module --- modules/system.module 28 Aug 2005 18:17:47 -0000 1.229 +++ modules/system.module 8 Sep 2005 18:11:06 -0000 @@ -22,7 +22,8 @@ case 'admin/themes/settings': return t('

These options control the default display settings for your entire site, across all themes. Unless they have been overridden by a specific theme, these settings will be used.

'); case 'admin/themes/settings/'. arg(3): - $theme = array_pop(explode('.', arg(3), 2)); + $ref = explode('.', arg(3), 2); + $theme = array_pop($ref); return t('

These options control the display settings for the %template theme. When your site is displayed using this theme, these settings will be used. By clicking "Reset to defaults," you can choose to use the global settings for this theme.

', array('%template' => $theme, '%global' => url('admin/themes/settings'))); case 'admin/modules': return t('

Modules are plugins for Drupal that extend its core functionality. Here you can select which modules are enabled. Click on the name of the module in the navigation menu for their individual configuration pages. Once a module is enabled, new permissions might be made available. Modules can automatically be temporarily disabled to reduce server load when your site becomes extremely busy by enabling the throttle.module and checking throttle. The auto-throttle functionality must be enabled on the throttle configuration page after having enabled the throttle module.

', array('%permissions' => url('admin/access/permissions'), '%throttle' => url('admin/settings/throttle'))); @@ -733,7 +734,8 @@ $group = form_checkbox(t('Use the default logo'), "$var][default_logo", 1, $settings['default_logo'], t('Check here if you want the theme to use the logo supplied with it.')); $group .= form_textfield(t('Path to custom logo'), "$var][logo_path", $settings['logo_path'], 60, 128, t('The path to the file you would like to use as your logo file instead of the default logo.')); - file_check_directory(variable_get('file_directory_path', 'files'), FILE_CREATE_DIRECTORY, 'file_directory_path'); + $directory_path = variable_get('file_directory_path', 'files'); + file_check_directory($directory_path, FILE_CREATE_DIRECTORY, 'file_directory_path'); $group .= form_file(t('Upload logo image'), 'logo_upload', 40, t("If you don't have direct file access to the server, use this field to upload your logo.")); $form .= form_group(t('Logo image settings'), $group); @@ -745,7 +747,8 @@ $group .= form_checkbox(t('Use the default shortcut icon.'), "$var][default_favicon", 1, $settings['default_favicon'], t('Check here if you want the theme to use the default shortcut icon.')); $group .= form_textfield(t('Path to custom icon'), "$var][favicon_path", $settings['favicon_path'], 60, 128, t('The path to the image file you would like to use as your custom shortcut icon.')); - file_check_directory(variable_get('file_directory_path', 'files'), FILE_CREATE_DIRECTORY, 'file_directory_path'); + $directory_path = variable_get('file_directory_path', 'files'); + file_check_directory($directory_path, FILE_CREATE_DIRECTORY, 'file_directory_path'); $group .= form_file(t('Upload icon image'), 'favicon_upload', 40, t("If you don't have direct file access to the server, use this field to upload your shortcut icon.")); $form .= form_group(t('Shortcut icon settings'), $group); Index: modules/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user.module,v retrieving revision 1.506 diff -u -r1.506 user.module --- modules/user.module 7 Sep 2005 20:56:00 -0000 1.506 +++ modules/user.module 8 Sep 2005 18:06:07 -0000 @@ -1363,7 +1363,8 @@ // If picture support is enabled, check whether the picture directory exists: if (variable_get('user_pictures', 0)) { - file_check_directory(file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path'); + $picture_path = file_create_path(variable_get('user_picture_path', 'pictures')); + file_check_directory($picture_path, 1, 'user_picture_path'); } $group = form_radios(t('Picture support'), 'user_pictures', variable_get('user_pictures', 0), array(t('Disabled'), t('Enabled')), t('Enable picture support.'));