[BUGFIX] Module User Settings calls deprecated methods
authorXavier Perseguers <xavier@typo3.org>
Sun, 2 Oct 2011 14:19:49 +0000 (16:19 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sun, 2 Oct 2011 16:47:48 +0000 (18:47 +0200)
When opening user settings, two deprecated methods are called. The new
methods cannot be used as they combine the business logic into a single
call but do not offer the same information granularity.

Change-Id: I13df6093e61d9ba2aa730c27ac4f9b7471443f6a
Fixes: #30516
Releases: 4.6
Reviewed-on: http://review.typo3.org/5481
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/setup/mod/index.php

index 05141e5..8555ea0 100755 (executable)
@@ -286,8 +286,10 @@ class SC_mod_user_setup_index {
 
                        // check Install Tool enable file
                        // @deprecated since TYPO3 4.6 - will be removed with TYPO3 4.8
-               $this->setInstallToolFileExists();
-               $this->setInstallToolFileKeep();
+               $this->installToolFileExists = is_file(PATH_typo3conf . 'ENABLE_INSTALL_TOOL');
+               if ($this->installToolFileExists) {
+                       $this->installToolFileKeep = (trim(file_get_contents(PATH_typo3conf . 'ENABLE_INSTALL_TOOL')) === 'KEEP_FILE');
+               }
 
                        // Returns the script user - that is the REAL logged in user! ($GLOBALS[BE_USER] might be another user due to simulation!)
                $scriptUser = $this->getRealScriptUserObj();
@@ -1004,4 +1006,4 @@ $LANG->includeLLFile('EXT:setup/mod/locallang.xml');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-?>
+?>
\ No newline at end of file