diff --git a/hooks/class.tx_ttproducts_match_condition.php b/hooks/class.tx_ttproducts_match_condition.php index bce0ceaa2..c12f037f4 100755 --- a/hooks/class.tx_ttproducts_match_condition.php +++ b/hooks/class.tx_ttproducts_match_condition.php @@ -113,7 +113,8 @@ public function hasBulkilyItem ($where) { $bBukily = false; tx_ttproducts_control_basket::init(); $recs = tx_ttproducts_control_basket::getRecs(); - $cObj = GeneralUtility::makeInstance('tslib_cObj'); + $cObj = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class); // Local cObj. + $cObj->start(array()); $basketExt = tx_ttproducts_control_basket::getBasketExt(); if (isset($basketExt) && is_array($basketExt)) { diff --git a/modfunc1/class.tx_ttproducts_modfunc1.php b/modfunc1/class.tx_ttproducts_modfunc1.php index cadd45da7..0fcf8d2c5 100755 --- a/modfunc1/class.tx_ttproducts_modfunc1.php +++ b/modfunc1/class.tx_ttproducts_modfunc1.php @@ -78,13 +78,7 @@ public function main () { } if ($GLOBALS['BE_USER']->user['admin']) { - $menu=array(); -// $menu[]=t3lib_BEfunc::getFuncCheck( -// $this->wizard->pObj->id, -// 'SET[tx_ttproducts_modfunc1_check]', -// $this->wizard->pObj->MOD_SETTINGS['tx_ttproducts_modfunc1_check'] -// ).$GLOBALS['LANG']->getLL('checklabel'); - + $menu = array(); $content = ''; $content .= '
' . $GLOBALS['LANG']->getLL('pid_dest') . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncInput( $this->pObj->id,