[TASK] Avoid unused xpath when parsing locallang.xml 51/51851/4
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:11:11 +0000 (20:11 +0200)
commit675e0fa9d887c90fdbe24a34318ee9ec2216e569
tree6cf6d3111722de6c91218d0496e4152ce5d5ed9f
parent119a1a40f45c7b8eb0014d2f1a208539cdc97142
[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/51851
Reviewed-by: Faton Haliti <fha@systime.dk>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Localization/Parser/LocallangXmlParser.php