MINOR merged from trunk

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@76738 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-05-13 21:42:35 +00:00 committed by Sam Minnee
parent 6f83864d46
commit 98e53ac2f7

View File

@ -1069,7 +1069,7 @@ class Translatable extends DataObjectDecorator {
$origHomepageObj = Translatable::get_one_by_locale(
'SiteTree',
Translatable::default_locale(),
sprintf('`URLSegment` = \'%s\'', RootUrlController::get_default_homepage_urlsegment())
sprintf('`URLSegment` = \'%s\'', RootURLController::get_default_homepage_urlsegment())
);
if($origHomepageObj) {
$translatedHomepageObj = $origHomepageObj->getTranslation($locale);