diff --git a/omega_tools.module b/omega_tools.module index 0e10e85..cdb43a2 100644 --- a/omega_tools.module +++ b/omega_tools.module @@ -150,12 +150,13 @@ function omega_tools_cache_get($name) { if (isset($themes[$name])) { $path = drupal_get_path('theme', $name); + $directory = dirname($path); $info = drupal_parse_info_file($path . '/' . $name . '.info'); $cache = new stdClass(); $cache->new = FALSE; $cache->machine_name = $name; - $cache->automated = file_prepare_directory($path, NULL) && file_prepare_directory(dirname($path), NULL); + $cache->automated = file_prepare_directory($path, NULL) && file_prepare_directory($directory, NULL); $cache->destination = $path; $cache->name = $info['name']; $cache->info = $info;