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:
Saophalkun Ponlu 2010-04-29 06:59:33 +00:00
parent c3b20fd3bd
commit 40170aac62
2 changed files with 5 additions and 1 deletions

2
README
View File

@ -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
------------

View File

@ -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);