Commit d6f3feaf authored by anarcat's avatar anarcat

subdir: add missing check to operate only on sites

parent 94763ab1
...@@ -97,10 +97,12 @@ function _subdirs_create_site_configs() { ...@@ -97,10 +97,12 @@ function _subdirs_create_site_configs() {
* Helper function to remove configuration files for subdirectories. * Helper function to remove configuration files for subdirectories.
*/ */
function _subdirs_remove_site_configs() { function _subdirs_remove_site_configs() {
$aliases = d()->aliases; if (d()->type == 'site') {
if (count($aliases)) { $aliases = d()->aliases;
foreach ($aliases as $alias) { if (count($aliases)) {
_subdirs_delete_symlinks($alias); foreach ($aliases as $alias) {
_subdirs_delete_symlinks($alias);
}
} }
} }
} }
......
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