PageRegular.php (contao-4.9.11) | : | PageRegular.php (contao-4.9.12) | ||
---|---|---|---|---|
skipping to change at line 830 | skipping to change at line 830 | |||
// Do not search the page if the query has a key that is in TL_NOINDEX_KEYS | // Do not search the page if the query has a key that is in TL_NOINDEX_KEYS | |||
if (preg_grep('/^(' . implode('|', $GLOBALS['TL_NOINDEX_K EYS']) . ')$/', array_keys($_GET))) | if (preg_grep('/^(' . implode('|', $GLOBALS['TL_NOINDEX_K EYS']) . ')$/', array_keys($_GET))) | |||
{ | { | |||
$noSearch = true; | $noSearch = true; | |||
} | } | |||
$meta = array | $meta = array | |||
( | ( | |||
'@context' => array('contao' => 'https://schema.c ontao.org/'), | '@context' => array('contao' => 'https://schema.c ontao.org/'), | |||
'@type' => 'contao:Page', | '@type' => 'contao:Page', | |||
'contao:title' => $objPage->pageTitle ?: $objPage ->title, | ||||
'contao:pageId' => (int) $objPage->id, | 'contao:pageId' => (int) $objPage->id, | |||
'contao:noSearch' => $noSearch, | 'contao:noSearch' => $noSearch, | |||
'contao:protected' => (bool) $objPage->protected, | 'contao:protected' => (bool) $objPage->protected, | |||
'contao:groups' => array_map('intval', array_filt er((array) $objPage->groups)), | 'contao:groups' => array_map('intval', array_filt er((array) $objPage->groups)), | |||
'contao:fePreview' => System::getContainer()->get ('contao.security.token_checker')->isPreviewMode() | 'contao:fePreview' => System::getContainer()->get ('contao.security.token_checker')->isPreviewMode() | |||
); | ); | |||
$strScripts .= '<script type="application/ld+json">' . js on_encode($meta) . '</script>'; | $strScripts .= '<script type="application/ld+json">' . js on_encode($meta) . '</script>'; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |