Do it the right way
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 4 Jan 2007 14:09:15 +0000 (14:09 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 4 Jan 2007 14:09:15 +0000 (14:09 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12064 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/message_list.tpl

index 555563f..81c221e 100644 (file)
@@ -494,7 +494,15 @@ if ($class != 'even' && $class != 'odd')
               <td>
                 <table class="table_empty" cellspacing="0">
                   <tr>
-                    <td class="links_paginator"><?php /* technically, should regenerate paginator but we know that the only things that change are these two field names, so str_replace should be faster */ echo str_replace(array('startMessage_1', 'paginator_submit_1'), array('startMessage_2', 'paginator_submit_2'), $paginator_str); ?></td>
+                    <td class="links_paginator"><?php 
+                     /**
+                       * The following line gets the output from a separate 
+                       * template altogether (called "paginator.tpl").
+                       * $this is the Template class object.
+                       */
+                      $paginator_str = $this->fetch('paginator.tpl');
+                      echo $paginator_str; 
+                    ?></td>
                     <td class="message_count"><?php echo $msg_cnt_str; ?></td>
                   </tr>
                 </table>