projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Happy New Year
[squirrelmail.git]
/
include
/
options
/
display.php
diff --git
a/include/options/display.php
b/include/options/display.php
index 1cf142f05402ed1f87d89a18f083b2f9a79bd32e..72f65c4e797c8e0ac823965c56a3fb04bcde2eaa 100644
(file)
--- a/
include/options/display.php
+++ b/
include/options/display.php
@@
-5,7
+5,7
@@
*
* Displays all optinos about display preferences
*
*
* Displays all optinos about display preferences
*
- * @copyright 1999-20
15
The SquirrelMail Project Team
+ * @copyright 1999-20
21
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@
-408,6
+408,13
@@
FIXME!
'refresh' => SMOPT_REFRESH_ALL
);
'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 ***/
/*** Load the Address Book Options into the array ***/
@@
-516,9
+523,11
@@
function icon_theme_save($option) {
// Don't assume the new value is there, double check
// and only save if found
$found = false;
// 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;
$found = true;
+ break;
+ }
}
if (!$found)
}
if (!$found)
@@
-533,17
+542,20
@@
function css_theme_save ($option) {
// Don't assume the new value is there, double check
// and only save if found
$found = false;
// 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;
$found = true;
+ break;
+ }
}
if (!$found) {
$template_themes = $oTemplate->get_alternative_stylesheets(true);
}
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;
$found = true;
+ break;
+ }
}
}
}
}