[TASK] Speed and clean up RecordsContentObject 64/37764/3
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 11 Mar 2015 22:58:16 +0000 (23:58 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Mar 2015 15:56:22 +0000 (16:56 +0100)
commit34097ad5f0777d5a10e951030bd049b4968872c8
tree71de466b45ca3e35d881dddb5a028fe02910f055
parent4aa5262937c5c624f4d39132784607527b8742b4
[TASK] Speed and clean up RecordsContentObject

* Initialize variables only when needed
* Use empty instead of count
* Set count once and use a variable instead
* Import used classes

Resolves: #65679
Releases: master
Change-Id: I4dc52907a4a3bc75f49be01beefb2a1c1cab13b3
Reviewed-on: http://review.typo3.org/37764
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/ContentObject/RecordsContentObject.php