RFT: Refactored the code. Use TYPO3 6.2 methods
RFT: Code refactoring. Exchanged last uses of t3lib_div