Skip to content

Commit

Permalink
bugfix: no tslib_cObj is allowed any more
Browse files Browse the repository at this point in the history
  • Loading branch information
franzholz committed Nov 21, 2019
1 parent 71fc86e commit 002563b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion hooks/class.tx_ttproducts_match_condition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
8 changes: 1 addition & 7 deletions modfunc1/class.tx_ttproducts_modfunc1.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<br />' . $GLOBALS['LANG']->getLL('pid_dest') . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncInput(
$this->pObj->id,
Expand Down

0 comments on commit 002563b

Please sign in to comment.