Remove deprecation
This commit is contained in:
@@ -26,6 +26,7 @@ namespace EP\EpEvents\Hooks;
|
|||||||
* This copyright notice MUST APPEAR in all copies of the script!
|
* 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\DataHandling\DataHandler;
|
||||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||||
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
||||||
@@ -51,7 +52,13 @@ class Tcemain
|
|||||||
$settings = $this->getSettings();
|
$settings = $this->getSettings();
|
||||||
$detailPageUid = $settings['plugin']['tx_epevents']['settings']['offerDetailPageUid'];
|
$detailPageUid = $settings['plugin']['tx_epevents']['settings']['offerDetailPageUid'];
|
||||||
if ((int) $detailPageUid > 0) {
|
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()
|
||||||
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user