diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-21 12:01:24 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-21 12:01:24 +0000 |
commit | 1a0e5b534c3f664780b22751f2e04f945369267e (patch) | |
tree | 85c32fb389e5a0985fc2abe669cad4a3e07b56d1 /modules | |
parent | c3949c505cdc26cec137f29b12b0cbd0ff36177e (diff) | |
download | brdo-1a0e5b534c3f664780b22751f2e04f945369267e.tar.gz brdo-1a0e5b534c3f664780b22751f2e04f945369267e.tar.bz2 |
#211353 follow up by JirkaRybka: ensure that on upgrades, if the file_directory_path was not set, set it to the Drupal 5 default
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 36aa6e566..fb49e1755 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2451,6 +2451,20 @@ function system_update_6045() { } /** + * Ensure that the file_directory_path variable is set (using the old 5.x + * default, if necessary), so that the changed 6.x default won't break + * existing sites. + */ +function system_update_6046() { + $ret = array(); + if (!variable_get('file_directory_path', FALSE)) { + variable_set('file_directory_path', 'files'); + $ret[] = array('success' => TRUE, 'query' => "variable_set('file_directory_path')"); + } + return $ret; +} + +/** * @} End of "defgroup updates-5.x-to-6.x" * The next series of updates should start at 7000. */ |