mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
MINOR: stamp the current date in host-map.php to help in debugging
MINOR: documentation - a link to a documentation on how to use subsite with static publisher
This commit is contained in:
parent
c3b20fd3bd
commit
40170aac62
2
README
2
README
@ -17,6 +17,8 @@ Documentation
|
||||
|
||||
Full documentation is available on [our wiki](http://doc.silverstripe.com/doku.php?id=modules:subsites).
|
||||
|
||||
To use subsites module with static publisher, see http://doc.silverstripe.org/staticpublisher#using_static_publisher_with_subsites_module
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
|
@ -493,7 +493,9 @@ JS;
|
||||
if ($subsite->DefaultSite) $hostmap['default'] = $subsite->domain();
|
||||
}
|
||||
|
||||
$data = '<?php $subsiteHostmap = '.var_export($hostmap, true).' ?>';
|
||||
$data = "<?php \n";
|
||||
$data .= "// Generated by Subsite::writeHostMap() on " . date('d/M/y') . "\n";
|
||||
$data .= '$subsiteHostmap = ' . var_export($hostmap, true) . ';';
|
||||
|
||||
if (is_writable(dirname($file)) || is_writable($file)) {
|
||||
file_put_contents($file, $data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user