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() {
* Helper function to remove configuration files for subdirectories.
*/
function _subdirs_remove_site_configs() {
$aliases = d()->aliases;
if (count($aliases)) {
foreach ($aliases as $alias) {
_subdirs_delete_symlinks($alias);
if (d()->type == 'site') {
$aliases = d()->aliases;
if (count($aliases)) {
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