FIX: Switch between mysqli::real_escape_string and mysql_real_escape_string, depending on the TYPO3 version