mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
6f83864d46
commit
98e53ac2f7
@ -1069,7 +1069,7 @@ class Translatable extends DataObjectDecorator {
|
|||||||
$origHomepageObj = Translatable::get_one_by_locale(
|
$origHomepageObj = Translatable::get_one_by_locale(
|
||||||
'SiteTree',
|
'SiteTree',
|
||||||
Translatable::default_locale(),
|
Translatable::default_locale(),
|
||||||
sprintf('`URLSegment` = \'%s\'', RootUrlController::get_default_homepage_urlsegment())
|
sprintf('`URLSegment` = \'%s\'', RootURLController::get_default_homepage_urlsegment())
|
||||||
);
|
);
|
||||||
if($origHomepageObj) {
|
if($origHomepageObj) {
|
||||||
$translatedHomepageObj = $origHomepageObj->getTranslation($locale);
|
$translatedHomepageObj = $origHomepageObj->getTranslation($locale);
|
||||||
|
Loading…
Reference in New Issue
Block a user