summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-12 13:31:10 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-12 13:31:10 +0200
commitb2a15c2c19370abccd511c0c6189ac13e881ecdb (patch)
treefd6c232c00e1cc79bdcb2fc1813713d18859e7ec /program/steps
parentaecdf0644d836660fc06eac91b5528e50f00efa8 (diff)
Set edited folder name to client environment
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/edit_folder.inc1
-rw-r--r--program/steps/settings/save_folder.inc1
2 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/settings/edit_folder.inc b/program/steps/settings/edit_folder.inc
index 172a953ff..fc55e870f 100644
--- a/program/steps/settings/edit_folder.inc
+++ b/program/steps/settings/edit_folder.inc
@@ -287,6 +287,7 @@ function rcmail_folder_form($attrib)
$out .= "\n$form_end";
$RCMAIL->output->set_env('messagecount', (int) $msgcount);
+ $RCMAIL->output->set_env('folder', $mbox);
if ($mbox !== null && empty($_POST)) {
$RCMAIL->output->command('parent.set_quota', $RCMAIL->quota_content(null, $mbox));
diff --git a/program/steps/settings/save_folder.inc b/program/steps/settings/save_folder.inc
index 9bb6bf3ab..b8fc49060 100644
--- a/program/steps/settings/save_folder.inc
+++ b/program/steps/settings/save_folder.inc
@@ -174,6 +174,7 @@ else if (!$error) {
}
$OUTPUT->show_message('folderupdated', 'confirmation');
+ $OUTPUT->set_env('folder', $folder['name']);
if ($rename) {
// #1488692: update session