Commit 8e3cac06 authored by helmo's avatar helmo

Issue #2157783 by helmo: Deploy_7 code has an unused old_uri.

parent 7b73a357
<?php
$new_url = drush_get_option('uri');
$old_url = drush_get_option('uri', 'site');
$old_url = drush_get_option('old_uri');
/**
* @file
......@@ -10,9 +10,11 @@ $old_url = drush_get_option('uri', 'site');
* directories.
*/
drush_log(
dt('Changed paths from sites/@old_url to sites/@new_url',
array('@old_url' => $old_url, '@new_url' => $new_url)));
if ($new_url != $old_url) {
drush_log(
dt('Changed paths from sites/@old_url to sites/@new_url',
array('@old_url' => $old_url, '@new_url' => $new_url)));
}
variable_set('file_public_path', "sites/$new_url/files");
variable_set('file_private_path', "sites/$new_url/private/files");
......
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