From: pdontthink Date: Wed, 3 Jan 2007 09:40:43 +0000 (+0000) Subject: Adding useful vars to template; is there a better place to add these?? Anyone?? X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d08a59457ddf407dbbf2bddf3e9841a451286941;p=squirrelmail.git Adding useful vars to template; is there a better place to add these?? Anyone?? git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12052 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/read_body.php b/src/read_body.php index e19fe13e..44ae6942 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -562,6 +562,11 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed $oTemplate->assign('button_onclick', $on_click); $oTemplate->assign('forward_as_attachment_enabled', $enable_forward_as_attachment==1); + //FIXME: I am surprised these aren't already given to the template; probably needs to be given at a higher level, so I have NO IDEA if this is the right place to do this... adding them so template can construct its own API calls... we can build those herein too if preferrable + $oTemplate->assign('mailbox', $aMailbox['NAME']); + $oTemplate->assign('passed_id', $passed_id); + $oTemplate->assign('what', $what); + // If Draft folder - create Resume link $resume_draft = $edit_as_new = false; if (($mailbox == $draft_folder) && ($save_as_draft)) {