Browse Source

Moving template util file

pdontthink 18 years ago
parent
commit
1e000b8e3c
2 changed files with 4 additions and 2 deletions
  1. 2 1
      functions/template/folder_list_util.php
  2. 2 1
      src/left_main.php

+ 2 - 1
templates/util_left_main.php → functions/template/folder_list_util.php

@@ -1,6 +1,7 @@
 <?php
 <?php
+
 /**
 /**
- * util_left_main.php
+ * folder_list_util.php
  *
  *
  * Provides some functions for use in left_main.php and templates.  Do not echo
  * Provides some functions for use in left_main.php and templates.  Do not echo
  * output from these functions!
  * output from these functions!

+ 2 - 1
src/left_main.php

@@ -20,7 +20,7 @@ require('../include/init.php');
 /* SquirrelMail required files. */
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'functions/imap_general.php');
 require_once(SM_PATH . 'functions/imap_general.php');
 require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'functions/date.php');
-require_once(SM_PATH . 'templates/util_left_main.php');
+require_once(SM_PATH . 'functions/template/folder_list_util.php');
 
 
 /* These constants are used for folder stuff. */
 /* These constants are used for folder stuff. */
 define('SM_BOX_UNCOLLAPSED', 0);
 define('SM_BOX_UNCOLLAPSED', 0);
@@ -141,6 +141,7 @@ if ($date_format != 6) {
     }
     }
     $clk = str_replace(' ','&nbsp;',$clk);
     $clk = str_replace(' ','&nbsp;',$clk);
 
 
+//FIXME don't build HTML here - do it in template; after this is fixed BE SURE to remove the FALSE from the assign() call for $clock below!
     $clock = '<small><span style="white-space: nowrap;">'
     $clock = '<small><span style="white-space: nowrap;">'
        . str_replace(' ', '&nbsp;', _("Last Refresh"))
        . str_replace(' ', '&nbsp;', _("Last Refresh"))
        . ":</span><br /><span style=\"white-space: nowrap;\">$clk</span></small><br />\n";
        . ":</span><br /><span style=\"white-space: nowrap;\">$clk</span></small><br />\n";