Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"issues": "http://forge.typo3.org/projects/extension-datamints_feuser"
},
"require": {
"php": ">=5.3.7,<=7.99.99",
"typo3/cms-core": ">=6.2.0,<=10.99.990"
"php": ">=5.3.7,<=8.1.99",
"typo3/cms-core": ">=6.2.0,<=11.99.990"
},
"suggest": {
"typo3db_legacy": ">=1.0.0,<=1.0.99"
Expand Down
6 changes: 5 additions & 1 deletion pi1/class.tx_datamintsfeuser_pi1.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ public function main($content, $conf) {
$this->frontendController = $this->frontendController ?: $GLOBALS['TSFE'];
$this->templateService = $this->templateService ?: $this->cObj;

$this->pageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
if (defined('TYPO3_branch') && (int)TYPO3_branch % 11 === 0) {
$this->pageRepository = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Domain\Repository\PageRepository::class);
} else {
$this->pageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
}

// Debug.
// $this->frontendController->set_no_cache();
Expand Down