Index: typo3/sysext/setup/mod/index.php
===================================================================
--- typo3/sysext/setup/mod/index.php (revision 6162)
+++ typo3/sysext/setup/mod/index.php (working copy)
@@ -112,6 +112,8 @@
protected $tsFieldConf;
+ protected $PASSWORD_UPDATED;
+ protected $SETUP_UPDATED;
/******************************
@@ -178,7 +180,8 @@
$save_after = md5(serialize($BE_USER->uc));
if ($save_before!=$save_after) { // If something in the uc-array of the user has changed, we save the array...
$BE_USER->writeUC($BE_USER->uc);
- $BE_USER->writelog(254,1,0,1,'Personal settings changed',Array());
+ $BE_USER->writelog(254, 1, 0, 1, 'Personal settings changed', array());
+ $this->SETUP_UPDATED = TRUE;
}
@@ -226,6 +229,7 @@
$tce->bypassWorkspaceRestrictions = TRUE; // This is to make sure that the users record can be updated even if in another workspace. This is tolerated.
$tce->process_datamap();
unset($tce);
+ $this->SETUP_UPDATED = TRUE;
}
}
}
@@ -329,15 +333,35 @@
$this->content .= $this->doc->header($LANG->getLL('UserSettings').' - '.$BE_USER->user['realName'].' ['.$BE_USER->user['username'].']');
+ // show if setup was saved
+ if ($this->SETUP_UPDATED) {
+ $flashMessage = t3lib_div::makeInstance(
+ 't3lib_FlashMessage',
+ $LANG->getLL('setupWasUpdated'),
+ $LANG->getLL('UserSettings')
+ );
+ $this->content .= $flashMessage->render();
+ }
// If password is updated, output whether it failed or was OK.
if ($this->PASSWORD_UPDATED) {
if ($this->PASSWORD_UPDATED > 0) {
- $this->content .= $this->doc->section($LANG->getLL('newPassword').':',$LANG->getLL('newPassword_ok'),1,0,1);
+ $flashMessage = t3lib_div::makeInstance(
+ 't3lib_FlashMessage',
+ $LANG->getLL('newPassword_ok'),
+ $LANG->getLL('newPassword')
+ );
} else {
- $this->content .= $this->doc->section($LANG->getLL('newPassword').':',$LANG->getLL('newPassword_failed'),1,0,2);
+ $flashMessage = t3lib_div::makeInstance(
+ 't3lib_FlashMessage',
+ $LANG->getLL('newPassword_failed'),
+ $LANG->getLL('newPassword'),
+ t3lib_FlashMessage::ERROR
+ );
}
+ $this->content .= $flashMessage->render();
}
+
// render the menu items
$menuItems = $this->renderUserSetup();
Index: typo3/sysext/setup/mod/locallang.xml
===================================================================
--- typo3/sysext/setup/mod/locallang.xml (revision 6162)
+++ typo3/sysext/setup/mod/locallang.xml (working copy)
@@ -99,7 +99,8 @@
-
+
+