MINOR fix typo

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98980 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Tom Rix 2010-02-15 03:52:41 +00:00 committed by Sam Minnee
parent 9b7d030eda
commit d2f05399e0

View File

@ -1959,7 +1959,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
// NOTE: if you change the path here, you must also change it in sapphire/static-main.php // NOTE: if you change the path here, you must also change it in sapphire/static-main.php
if (self::$write_homepage_map) { if (self::$write_homepage_map) {
if ($usingStaticPublishing && $map = self::generate_homemage_domain_map()) { if ($usingStaticPublishing && $map = SiteTree::generate_homepage_domain_map()) {
@file_put_contents(BASE_PATH.'/'.ASSETS_DIR.'/_homepage-map.php', "<?php\n\$homepageMap = ".var_export($map, true)."; ?>"); @file_put_contents(BASE_PATH.'/'.ASSETS_DIR.'/_homepage-map.php', "<?php\n\$homepageMap = ".var_export($map, true)."; ?>");
} else { if (file_exists(BASE_PATH.'/'.ASSETS_DIR.'/_homepage-map.php')) unlink(BASE_PATH.'/'.ASSETS_DIR.'/_homepage-map.php'); } } else { if (file_exists(BASE_PATH.'/'.ASSETS_DIR.'/_homepage-map.php')) unlink(BASE_PATH.'/'.ASSETS_DIR.'/_homepage-map.php'); }
} }