Commit 3d77abdd authored by webchick's avatar webchick

#790224 by lotyrin, pwolanin, nenne: Fixed incorrect paths to temp directory in Update Manager.

parent 9b54c79c
......@@ -83,7 +83,7 @@ function authorize_filetransfer_form($form_state) {
$form['connection_settings']['authorize_filetransfer_default']['#options'][$name] = $backend['title'];
$form['connection_settings'][$name] = array(
'#type' => 'fieldset',
'#attributes' => array('class' => "filetransfer-$name filetransfer"),
'#attributes' => array('class' => array("filetransfer-$name", 'filetransfer')),
'#title' => t('@backend connection settings', array('@backend' => $backend['title'])),
);
......
......@@ -635,7 +635,7 @@ function update_manager_install_form_submit($form, &$form_state) {
function _update_manager_extract_directory() {
$directory = &drupal_static(__FUNCTION__, '');
if (empty($directory)) {
$directory = DRUPAL_ROOT . '/' . file_directory_path('temporary') . '/update-extraction';
$directory = 'temporary://update-extraction';
if (!file_exists($directory)) {
mkdir($directory);
}
......@@ -708,8 +708,8 @@ function update_manager_file_get($url) {
}
// Check the cache and download the file if needed.
$local = 'temporary://update-cache/' . basename($parsed_url['path']);
$cache_directory = DRUPAL_ROOT . '/' . file_directory_path('temporary') . '/update-cache/';
$cache_directory = 'temporary://update-cache';
$local = $cache_directory . '/' . basename($parsed_url['path']);
if (!file_exists($cache_directory)) {
mkdir($cache_directory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment