Commit 4257a015 authored by anarcat's avatar anarcat Committed by anarcat
Browse files

#670088 - fix file_directory path variable names in deploy

parent 2a40b5f0
...@@ -17,6 +17,6 @@ drush_log( ...@@ -17,6 +17,6 @@ drush_log(
db_query("UPDATE {files} SET filepath=replace(filepath, 'sites/%', 'sites/%')", $old_url, $new_url); db_query("UPDATE {files} SET filepath=replace(filepath, 'sites/%', 'sites/%')", $old_url, $new_url);
db_query("UPDATE {users} SET picture = replace(picture, 'sites/%s', 'sites/%s')", $old_url, $new_url); db_query("UPDATE {users} SET picture = replace(picture, 'sites/%s', 'sites/%s')", $old_url, $new_url);
variable_set('files_directory_path', "sites/$new_url/files"); variable_set('file_directory_path', "sites/$new_url/files");
variable_set('files_directory_temp', "sites/$new_url/files/tmp"); variable_set('file_directory_temp', "sites/$new_url/files/tmp");
...@@ -19,6 +19,6 @@ drush_log( ...@@ -19,6 +19,6 @@ drush_log(
db_query("UPDATE {files} SET filepath=replace(filepath, :oldpath, :newpath)", $sql_args); db_query("UPDATE {files} SET filepath=replace(filepath, :oldpath, :newpath)", $sql_args);
db_query("UPDATE {users} SET picture = replace(picture, :oldpath, :newpath)", $sql_args); db_query("UPDATE {users} SET picture = replace(picture, :oldpath, :newpath)", $sql_args);
variable_set('files_directory_path', "sites/$new_url/files"); variable_set('file_directory_path', "sites/$new_url/files");
variable_set('files_directory_temp', "sites/$new_url/files/tmp"); variable_set('file_directory_temp', "sites/$new_url/files/tmp");
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