From a22d16719894d7991dab04e5110e78d1de4b7b2c Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 5 Feb 2007 23:26:53 +0000 Subject: [PATCH] Allow other plugins to indicate that preview_pane should load the URI being loaded in the preview pane into the message list pane instead git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12224 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/preview_pane/functions.php | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/plugins/preview_pane/functions.php b/plugins/preview_pane/functions.php index 1df2a326..2fbaf1b8 100644 --- a/plugins/preview_pane/functions.php +++ b/plugins/preview_pane/functions.php @@ -89,8 +89,12 @@ function preview_pane_message_list_do() if (!checkForJavascript()) return; + // globalize $pp_forceTopURL and $pp_noPageHeader to synch + // with other plugins (sent_confirmation, for example) + // global $plugins, $archive_mail_button_has_been_printed, - $username, $data_dir, $PHP_SELF, $base_uri; + $username, $data_dir, $PHP_SELF, $base_uri, + $pp_forceTopURL, $pp_noPageHeader; $output = ''; @@ -116,7 +120,7 @@ function preview_pane_message_list_do() $output .= addButton(_("Clear Preview"), 'clear_preview', array('onclick' => 'parent.bottom.document.location=\'' - . $base_uri . '/plugins/preview_pane/empty_frame.php\'; ')) + . $base_uri . 'plugins/preview_pane/empty_frame.php\'; ')) @@ -126,8 +130,19 @@ function preview_pane_message_list_do() . "\n" . "\n"; -- 2.25.1