Commit 5d2c7861 authored by Benni Mack's avatar Benni Mack Committed by Christian Kuhn
Browse files

[TASK] Remove all $GLOBALS['rootline'] usages

The getRootline() method of ExtendedTemplateService is broken
because of an incomplete replacement of the web_ts changes.

See https://review.typo3.org/#/c/50626/

The fix replaces the rootline variable in the last occurence
by the correct replacement.

Related: #78675
Resolves: #76545
Releases: master
Change-Id: Ib554679fd86230e183801e9b234a8138d4518cd3
Reviewed-on: https://review.typo3.org/50695

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent d1bf1a06
......@@ -1632,11 +1632,13 @@ class ExtendedTemplateService extends TemplateService
}
/**
* Is set by runThroughTemplates(), previously set via TemplateAnalyzerModuleFunctionController from the outside
*
* @return array
*/
protected function getRootLine()
{
return isset($GLOBALS['rootLine']) ? $GLOBALS['rootLine'] : [];
return is_array($this->absoluteRootLine) ? $this->absoluteRootLine : [];
}
/**
......
Supports Markdown
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