diff --git a/omega_tools.module b/omega_tools.module index 0e10e85..c743862 100644 --- a/omega_tools.module +++ b/omega_tools.module @@ -505,13 +505,14 @@ function omega_tools_write_archive($source, $name, $destination = NULL) { return FALSE; } - + + $realpath_destination = drupal_realpath($destination) . '/' . $name . '.tar'; $destination = $destination . '/' . $name . '.tar'; $current = getcwd(); chdir(drupal_realpath(dirname($source))); - $archiver = new Archive_Tar(drupal_realpath($destination)); + $archiver = new Archive_Tar($realpath_destination); $archiver->create(basename(rtrim($source, '/'))); chdir($current); @@ -643,4 +644,4 @@ function _omega_tools_is_editable($theme) { } return FALSE; -} \ No newline at end of file +}