Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
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
2 changes: 1 addition & 1 deletion lib/class.tx_datamintsfeuser_utils.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static function generatePassword($password, $arrGenerate = array()) {
$arrPassword['normal'] = '';

for ($i = 0; $i < (($arrGenerate['length']) ? $arrGenerate['length'] : 8); $i++) {
$arrPassword['normal'] .= $chars{mt_rand(0, strlen($chars))};
$arrPassword['normal'] .= $chars[mt_rand(0, strlen($chars))];
}
}

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