From ff301288f2ea06d76606c05bccac5957e2873a94 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 11 Apr 2010 18:33:44 +0000 Subject: - Patch #348448 by mfb, c960657, marvil07, cdale, jpmckinney: fixed PHP strict warnings when running tests and for PHP 5.3. --- modules/system/system.admin.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/system/system.admin.inc') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index e2b79a9e0..3ca45af48 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -369,7 +369,7 @@ function system_theme_enable() { if (isset($_REQUEST['theme']) && isset($_REQUEST['token']) && drupal_valid_token($_REQUEST['token'], 'system-theme-operation-link')) { $theme = $_REQUEST['theme']; // Get current list of themes. - $themes =& _system_theme_list(); + $themes = _system_theme_list(); // Check if the specified theme is one recognized by the system. if (!empty($themes[$theme])) { @@ -391,7 +391,7 @@ function system_theme_disable() { if (isset($_REQUEST['theme']) && isset($_REQUEST['token']) && drupal_valid_token($_REQUEST['token'], 'system-theme-operation-link')) { $theme = $_REQUEST['theme']; // Get current list of themes. - $themes =& _system_theme_list(); + $themes = _system_theme_list(); // Check if the specified theme is one recognized by the system. if (!empty($themes[$theme])) { @@ -419,7 +419,7 @@ function system_theme_default() { if (isset($_REQUEST['theme']) && isset($_REQUEST['token']) && drupal_valid_token($_REQUEST['token'], 'system-theme-operation-link')) { $theme = $_REQUEST['theme']; // Get current list of themes. - $themes =& _system_theme_list(); + $themes = _system_theme_list(); // Check if the specified theme is one recognized by the system. if (!empty($themes[$theme])) { @@ -1947,7 +1947,8 @@ function system_date_time_settings() { foreach ($formats as $f => $format) { $choices[$f] = format_date(REQUEST_TIME, 'custom', $f); } - $default = variable_get('date_format_' . $type, array_shift(array_keys($formats))); + reset($formats); + $default = variable_get('date_format_' . $type, key($formats)); // Get date type info for this date type. $type_info = system_get_date_types($type); -- cgit v1.2.3