*
* Displays all optinos about display preferences
*
- * @copyright 1999-2017 The SquirrelMail Project Team
+ * @copyright 1999-2021 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
'refresh' => SMOPT_REFRESH_ALL
);
+ $optvals[SMOPT_GRP_MESSAGE][] = array(
+ 'name' => 'return_to_message_list_after_move',
+ 'caption' => _("Return To Message List After Move"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_NONE
+ );
+
/*** Load the Address Book Options into the array ***/
// Don't assume the new value is there, double check
// and only save if found
$found = false;
- while (!$found && (list($index, $data) = each($icon_themes))) {
- if ($data['PATH'] == $option->new_value)
+ foreach ($icon_themes as $data) {
+ if ($data['PATH'] == $option->new_value) {
$found = true;
+ break;
+ }
}
if (!$found)
// Don't assume the new value is there, double check
// and only save if found
$found = false;
- reset($user_themes);
- while (!$found && (list($index, $data) = each($user_themes))) {
- if ($data['PATH'] == $option->new_value)
+ foreach ($user_themes as $data) {
+ if ($data['PATH'] == $option->new_value) {
$found = true;
+ break;
+ }
}
if (!$found) {
$template_themes = $oTemplate->get_alternative_stylesheets(true);
- while (!$found && (list($path, $name) = each($template_themes))) {
- if ($path == $option->new_value)
+ foreach ($template_themes as $path => $name) {
+ if ($path == $option->new_value) {
$found = true;
+ break;
+ }
}
}