Skip to content
Snippets Groups Projects
Commit 54f3fa0e authored by Nikita Hovratov's avatar Nikita Hovratov
Browse files

[BUGFIX] Fix undefined array key in FrontendGenerationPageIndexingTrigger

This is an edge-case, where `config.index_enable = 1` is set, but the
static TypoScript from indexed_search is not included and thus
`config.index_externals` is undefined.

Resolves: #100888
Releases: main, 12.4, 11.5
Change-Id: I0b9fa04970812ca82edc4d223cd57e59e3a2ed83
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79070


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
parent 368326d8
Branches
Tags
No related merge requests found
......@@ -116,7 +116,7 @@ class TypoScriptFrontendHook
$configuration['mtime'] = $tsfe->register['SYS_LASTCHANGED'] ?? $tsfe->page['SYS_LASTCHANGED'];
// Most recent modification time (seconds) of the content on the page. Used to evaluate whether it should be re-indexed.
// Configuration of behavior
$configuration['index_externals'] = $tsfe->config['config']['index_externals'];
$configuration['index_externals'] = $tsfe->config['config']['index_externals'] ?? true;
// Whether to index external documents like PDF, DOC etc. (if possible)
$configuration['index_descrLgd'] = $tsfe->config['config']['index_descrLgd'] ?? 0;
// Length of description text (max 250, default 200)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment