[Hastymail-cvs] SF.net SVN: hastymail: [146] trunk/hastymail2/lib
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2008-01-29 17:10:59
|
Revision: 146 http://hastymail.svn.sourceforge.net/hastymail/?rev=146&view=rev Author: sailfrog Date: 2008-01-29 09:10:56 -0800 (Tue, 29 Jan 2008) Log Message: ----------- small fix to the folders page, and a big fix to text part display. For some reason I had text body parts running through the header field decode routine. I largish text message of 200K was taking 14 seconds to display. Now it takes 1.5 Modified Paths: -------------- trunk/hastymail2/lib/site_page_class.php trunk/hastymail2/lib/url_action_class.php Modified: trunk/hastymail2/lib/site_page_class.php =================================================================== --- trunk/hastymail2/lib/site_page_class.php 2008-01-29 05:39:12 UTC (rev 145) +++ trunk/hastymail2/lib/site_page_class.php 2008-01-29 17:10:56 UTC (rev 146) @@ -303,7 +303,7 @@ } function print_message_text() { $data = '<div id="message_text" style="font-family: '.$this->pd['settings']['font_family'].';">'; - $data .= $this->user->htmlsafe(prep_text_part($this->pd['message_data']), $this->pd['charset'], true); + $data .= $this->user->htmlsafe(prep_text_part($this->pd['message_data']), $this->pd['charset']); $data .= '</div>'; return $data; } Modified: trunk/hastymail2/lib/url_action_class.php =================================================================== --- trunk/hastymail2/lib/url_action_class.php 2008-01-29 05:39:12 UTC (rev 145) +++ trunk/hastymail2/lib/url_action_class.php 2008-01-29 17:10:56 UTC (rev 146) @@ -254,9 +254,11 @@ } function url_action_folders($get) { global $user; - $user->dsp_page = 'folders'; - $user->page_title .= ' - Folders'; - $user->page_data['folders'] = $_SESSION['folders']; + if ($user->logged_in) { + $user->dsp_page = 'folders'; + $user->page_title .= ' - Folders'; + $user->page_data['folders'] = $_SESSION['folders']; + } } function url_action_login($get) { global $user; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |