[TASK] Avoid unused xpath when parsing locallang.xml 69/52369/2
authorStephan Großberndt <stephan@grossberndt.de>
Sat, 25 Feb 2017 11:30:09 +0000 (12:30 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 5 Apr 2017 18:19:40 +0000 (20:19 +0200)
commitab5d41477241267281acec65bccf39f804065913
tree8d1add143c5f905d85b4765731e3c0ef02b3c005
parent1e241298a6a6d292a6159fe5c3ffc99ef2d60c8d
[TASK] Avoid unused xpath when parsing locallang.xml

Increased performance by avoiding an xpath query if the requested
element is not 'target'.

Releases: master, 7.6
Resolves: #80016
Change-Id: I509de5bfb79701efe966d16bc29aaae6a46050ef
Reviewed-on: https://review.typo3.org/52369
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Localization/Parser/LocallangXmlParser.php