From fe7e01c60d9d0c540112fa2ffe4265240e2fe0cb Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 21 Nov 2010 20:35:10 +0000 Subject: #931736 by dww: Fixed No upgrade path for the D6 'file_directory_temp' setting. --- modules/system/system.install | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index ad76e11be..5e0d5b8d2 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2157,7 +2157,7 @@ function system_update_7033() { } /** - * Migrate the file_downloads setting and create the new {file_managed} table. + * Migrate the file path settings and create the new {file_managed} table. */ function system_update_7034() { $files_directory = variable_get('file_directory_path', NULL); @@ -2917,6 +2917,15 @@ function system_update_7065() { db_delete('sessions')->condition('sid', '')->execute(); } +/** + * Migrate the 'file_directory_temp' variable. + */ +function system_update_7066() { + $d6_file_directory_temp = variable_get('file_directory_temp', file_directory_temp()); + variable_set('file_temporary_path', $d6_file_directory_temp); + variable_del('file_directory_temp'); +} + /** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. -- cgit v1.2.3