14
14
* The TYPO3 project - inspiring people to share!
15
15
*/
16
16
17
- use TYPO3 \CMS \Backend \Utility \ BackendUtility ;
17
+ use TYPO3 \CMS \Backend \Routing \ UriBuilder ;
18
18
use TYPO3 \CMS \Core \Authentication \BackendUserAuthentication ;
19
19
use TYPO3 \CMS \Core \Utility \GeneralUtility ;
20
- use TYPO3 \CMS \Lang \LanguageService ;
20
+ use TYPO3 \CMS \Core \ Localization \LanguageService ;
21
21
22
22
/**
23
23
* This class is the OpenID return script for the TYPO3 Backend (used in the user-settings module).
@@ -31,7 +31,7 @@ class OpenidModuleSetup
31
31
*/
32
32
public function accessLevelCheck ()
33
33
{
34
- $ setupConfig = $ this ->getBackendUser ()->getTSConfigProp ( 'setup.fields ' ) ;
34
+ $ setupConfig = $ this ->getBackendUser ()->getTSConfig ()[ 'setup. ' ][ ' fields. ' ] ;
35
35
return empty ($ setupConfig ['tx_openid_openid. ' ]['disabled ' ]);
36
36
}
37
37
@@ -47,8 +47,9 @@ public function renderOpenID()
47
47
$ this ->getLanguageService ()->sL ('LLL:EXT:openid/Resources/Private/Language/locallang.xlf:addopenid ' )
48
48
);
49
49
50
+ $ uriBuilder = GeneralUtility::makeInstance (UriBuilder::class);
50
51
$ 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 ));
52
53
return '<div class="input-group"> ' .
53
54
'<input id="field_tx_openid_openid" ' .
54
55
' class="form-control" ' .
@@ -74,7 +75,7 @@ protected function getBackendUser()
74
75
}
75
76
76
77
/**
77
- * @return LanguageService
78
+ * @return LanguageService|\TYPO3\CMS\Lang\LanguageService
78
79
*/
79
80
protected function getLanguageService ()
80
81
{
0 commit comments