Skip to content

Commit 25854bc

Browse files
authored
Merge pull request #36 from djcprinse/master
Show user settings in TYPO3 v10
2 parents c7eb52c + e966d14 commit 25854bc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Classes/OpenidModuleSetup.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* The TYPO3 project - inspiring people to share!
1515
*/
1616

17-
use TYPO3\CMS\Backend\Utility\BackendUtility;
17+
use TYPO3\CMS\Backend\Routing\UriBuilder;
1818
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
1919
use TYPO3\CMS\Core\Utility\GeneralUtility;
20-
use TYPO3\CMS\Lang\LanguageService;
20+
use TYPO3\CMS\Core\Localization\LanguageService;
2121

2222
/**
2323
* This class is the OpenID return script for the TYPO3 Backend (used in the user-settings module).
@@ -31,7 +31,7 @@ class OpenidModuleSetup
3131
*/
3232
public function accessLevelCheck()
3333
{
34-
$setupConfig = $this->getBackendUser()->getTSConfigProp('setup.fields');
34+
$setupConfig = $this->getBackendUser()->getTSConfig()['setup.']['fields.'];
3535
return empty($setupConfig['tx_openid_openid.']['disabled']);
3636
}
3737

@@ -47,8 +47,9 @@ public function renderOpenID()
4747
$this->getLanguageService()->sL('LLL:EXT:openid/Resources/Private/Language/locallang.xlf:addopenid')
4848
);
4949

50+
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
5051
$parameters = ['P[itemName]' => 'data[be_users][tx_openid_openid]'];
51-
$popUpUrl = GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('wizard_openid', $parameters));
52+
$popUpUrl = GeneralUtility::quoteJSvalue($uriBuilder->buildUriFromRoute('wizard_openid', $parameters));
5253
return '<div class="input-group">' .
5354
'<input id="field_tx_openid_openid"' .
5455
' class="form-control"' .
@@ -74,7 +75,7 @@ protected function getBackendUser()
7475
}
7576

7677
/**
77-
* @return LanguageService
78+
* @return LanguageService|\TYPO3\CMS\Lang\LanguageService
7879
*/
7980
protected function getLanguageService()
8081
{

0 commit comments

Comments
 (0)