28 protected $title =
'Version Compatibility';
40 Your current TYPO3 installation is configured to 41 <strong>behave like version 42 ' . htmlspecialchars(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'compat_version']) .
' 43 </strong> of TYPO3. If you just upgraded from this version, 44 you most likely want to <strong>use new features</strong> as 48 In the next step, you will see the things that need to be 49 adjusted to make your installation compatible with the new 70 <strong>You updated from an older version of TYPO3</strong>: 73 <label for="version">Select the version where you have upgraded from:</label> 74 <select name="' . $inputPrefix .
'[version]" id="version"> 84 foreach ($versions as $singleVersion => $caption) {
86 <option value="' . $singleVersion .
'">' . $caption .
'</option> 98 TYPO3 output is currently compatible to version ' . htmlspecialchars(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'compat_version']) .
'. 99 To use all the new features in the current TYPO3 version, 100 make sure you follow the guidelines below to upgrade without 105 Follow the steps below carefully and confirm every step! 108 You will see this list again after you performed the update. 115 <li class="labelAfter"> 116 <input type="checkbox" name="' . $inputPrefix .
'[compatVersion][all]" id="compatVersionAll" value="1" /> 117 <label for="compatVersionAll">Check all (ignore selection above)</label> 120 WARNING: this might break the output of your website. 139 if ($this->userInput[
'compatVersion'][
'all']) {
142 $performUpdate = TRUE;
145 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'ext/install'][
'compat_version'] as $internalName => $details) {
146 if ($details[
'version'] > $oldVersion && $details[
'version'] <= $currentVersion) {
147 if (!$this->userInput[
'compatVersion'][$internalName]) {
148 $performUpdate = FALSE;
149 $customMessages =
'If you want to update the compatibility version, you need to confirm all checkboxes on the previous page.';
154 return $performUpdate;
167 $customMessages =
'';
169 if ($this->userInput[
'version']) {
170 $customMessages .=
'If you want to see what you need to do to use the new features, run the update wizard again!';
172 $version = $this->userInput[
'version'] ? $this->userInput[
'version'] : TYPO3_branch;
174 $customMessages .=
'<br />The compatibility version has been set to ' . $version .
'.';
184 if (TYPO3_branch !=
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'compat_version']) {
201 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'ext/install'][
'compat_version'])) {
202 $upgradeWizardBoxes =
'';
203 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'ext/install'][
'compat_version'] as $internalName => $details) {
204 if ($details[
'version'] > $oldVersion && $details[
'version'] <= $currentVersion) {
205 $description = str_replace(chr(10),
'<br />', $details[
'description']);
206 $description_acknowledge = isset($details[
'description_acknowledge']) ? str_replace(chr(10),
'<br />', $details[
'description_acknowledge']) :
'';
207 $upgradeWizardBoxes .=
' 208 <div style="border: 1px solid; padding: 10px; margin: 10px; padding-top: 0px; width: 500px;"> 209 <h3>' . (isset($details[
'title']) ? $details[
'title'] : $internalName) .
'</h3> 210 ' . $description . (strlen($description_acknowledge) ?
'<p>' . $description_acknowledge .
'</p>' :
'') . (strlen($inputPrefix) ?
' 213 <li class="labelAfter"> 214 <input type="checkbox" name="' . $inputPrefix .
'[compatVersion][' . $internalName .
']" id="compatVersion' . $internalName .
'" value="1" /> 215 <label for="compatVersion' . $internalName .
'">Acknowledged</label> 224 if (strlen($upgradeWizardBoxes)) {
225 return $upgradeWizardBoxes;
checkUserInput(&$customMessages)
checkForUpdate(&$description)
performUpdate(array &$dbQueries, &$customMessages)
static makeInstance($className)
showChangesNeeded($inputPrefix='')
static convertVersionNumberToInteger($versionNumber)
getUserInput($inputPrefix)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]