From cdb3b004685f28cd34a38cec8d446aba1f0f72ff Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 14 Feb 2007 04:32:00 +0000 Subject: [PATCH] Plugins like listcommands should not close their own pages without displaying errors; easiest way to do that is use footer.tpl git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12260 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/listcommands/functions.php | 2 +- plugins/listcommands/mailout.php | 2 +- plugins/listcommands/options.php | 1 + plugins/listcommands/templates/default/non_rfc_lists.tpl | 2 -- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/listcommands/functions.php b/plugins/listcommands/functions.php index 66a4f99b..b54d6fb8 100644 --- a/plugins/listcommands/functions.php +++ b/plugins/listcommands/functions.php @@ -169,7 +169,7 @@ function plugin_listcommands_menu_do() { if (count($links) > 0) { - $oTemplate->assign('links', $links); + $oTemplate->assign('links', $links, FALSE); $output = $oTemplate->fetch('plugins/listcommands/read_body_header.tpl'); return array('read_body_header' => $output); } diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index b84c16d3..89ffe51f 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -84,4 +84,4 @@ echo '
' . addSubmit(_("Send Mail"), 'send'); ?>

-

\ No newline at end of file +

diff --git a/plugins/listcommands/options.php b/plugins/listcommands/options.php index 22e998e5..26e4ec23 100644 --- a/plugins/listcommands/options.php +++ b/plugins/listcommands/options.php @@ -74,5 +74,6 @@ displayPageHeader($color, 'None'); $oTemplate->assign('lists', $lists); $oTemplate->display('plugins/listcommands/non_rfc_lists.tpl'); +$oTemplate->display('footer.tpl'); diff --git a/plugins/listcommands/templates/default/non_rfc_lists.tpl b/plugins/listcommands/templates/default/non_rfc_lists.tpl index 00804b3b..e89c08b3 100644 --- a/plugins/listcommands/templates/default/non_rfc_lists.tpl +++ b/plugins/listcommands/templates/default/non_rfc_lists.tpl @@ -62,5 +62,3 @@ extract($t); - - -- 2.25.1