Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ private function createRegularPage(Batch $batch, ?CCMPage $ccmParentPage, MTPage
];
$localeInfo = $mtPage->getLocaleRoot();
if ($localeInfo === null || $batch->isPublishToSitemap() !== true || $this->localeAlreadyExists($batch, $localeInfo)) {
return $ccmParentPage->add($pageType, $data);
// Page::add() ignores $data['pTemplateID'] and falls back to the page type's
// default template unless the template is passed as the third argument.
return $ccmParentPage->add($pageType, $data, $pageTemplate ?: false);
}
if (!$pageTemplate) {
throw new UserMessageException(t('Missing page template when creating the home of a language'));
Expand Down
Loading