Remove deprecation

This commit is contained in:
Björn Fromme
2018-09-14 11:01:10 +02:00
parent 8ef243e823
commit a3a8d8bf19
@@ -26,6 +26,7 @@ namespace EP\EpEvents\Hooks;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use EP\EpProducts\Utility\DbUtility;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
@@ -51,7 +52,13 @@ class Tcemain
$settings = $this->getSettings();
$detailPageUid = $settings['plugin']['tx_epevents']['settings']['offerDetailPageUid'];
if ((int) $detailPageUid > 0) {
$GLOBALS['TYPO3_DB']->exec_DELETEquery('tx_realurl_urldata', 'page_id=' . $detailPageUid);
$qb = DbUtility::getDbConnection()->createQueryBuilder();
$qb
->delete('tx_realurl_urldata')
->where('page_id = :pageUid')
->setParameter('pageUid', $detailPageUid)
->execute()
;
}
}
}