Skip to content
Snippets Groups Projects
Commit 3fca814d authored by Tim Steiner's avatar Tim Steiner
Browse files

Fixing migration due to a drupal function being removed.

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@180 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 4c595f8a
No related branches found
No related tags found
No related merge requests found
......@@ -344,7 +344,7 @@ class Unl_Migration_Tool
}
@drupal_mkdir('public://' . dirname($path), NULL, TRUE);
$file = file_save_data($data['content'], 'public://' . $path, FILE_EXISTS_REPLACE);
$this->_hrefTransformFiles[$path] = file_directory_path() . '/' . $path;
$this->_hrefTransformFiles[$path] = file_stream_wrapper_get_instance_by_scheme('public')->getDirectoryPath() . '/' . $path;
return;
}
$html = $data['content'];
......@@ -568,7 +568,7 @@ class Unl_Migration_Tool
$content = substr($data, $meta['header_size']);
if ($meta['http_code'] == 301) {
if (in_array($meta['http_code'], array(301, 302))) {
$location = $headers['Location'];
$path = substr($location, strlen($this->_baseUrl));
$this->_addSitePath($path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment