Commit 5b103b87 authored by fabsor's avatar fabsor Committed by omega8cc

Issue #2718567 by fabsor: Subdirectory records aren't generated properly in sites.php

parent a700e6b3
......@@ -43,4 +43,16 @@ print "<?php \n"; ?>
* Edit the lines below to define directory aliases. Remove the leading hash
* signs to enable.
*/
<?php
$aliases = d()->aliases;
// Fix our subdir aliases.
foreach ($aliases as $alias) {
// Only replace the records[] array key if the alias is a subdir alias
// Patch for https://drupal.org/node/2213387
if(strpos($alias, "/")) {
$records[str_replace('/', '.', $alias)] = $records[$alias];
unset($records[$alias]);
}
}
?>
$sites = <?php print var_export($records, TRUE) ?>;
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