summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-09-01 20:08:17 +0000
committerDries Buytaert <dries@buytaert.net>2010-09-01 20:08:17 +0000
commitfb300d1f967d17a10678582f46e82bd133d23aae (patch)
tree8a5aa158ce6669cce5116e2f1a7f3ece363886cc /modules/system/system.install
parentd62224dc56c59546a68ff2ecc1686f3cf59674a1 (diff)
downloadbrdo-fb300d1f967d17a10678582f46e82bd133d23aae.tar.gz
brdo-fb300d1f967d17a10678582f46e82bd133d23aae.tar.bz2
- Patch #895308 by Damien Tournoud: remove file_directory_path().
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 08be7bba9..4c8dcb9fa 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -323,7 +323,7 @@ function system_requirements($phase) {
}
}
else {
- if (variable_get('file_default_scheme', 'public') == 'public') {
+ if (file_default_scheme() == 'public') {
$requirements['file system']['value'] = $t('Writable (<em>public</em> download method)');
}
else {
@@ -2726,7 +2726,7 @@ function system_update_7060(&$sandbox) {
'settings' => array(
'display_field' => 1,
'display_default' => variable_get('upload_list_default', 1),
- 'uri_scheme' => variable_get('file_default_scheme', 'public'),
+ 'uri_scheme' => file_default_scheme(),
'default_file' => 0,
),
);
@@ -2830,7 +2830,7 @@ function system_update_7060(&$sandbox) {
}
$basename = variable_get('file_directory_path', conf_path() . '/files');
- $scheme = variable_get('file_default_scheme', 'public') . '://';
+ $scheme = file_default_scheme() . '://';
foreach ($node_revisions as $vid => $revision) {
// We will convert filepaths to uri using the default scheme
// and stripping off the existing file directory path.