util_global.php was included twice (second time by footer.tpl)
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Oct 2006 19:27:17 +0000 (19:27 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 9 Oct 2006 19:27:17 +0000 (19:27 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11887 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/read_attachments.tpl

index 0ed091639ce0aab543cb307db4ca0052631f9ffc..f41f78616242608c753b6a54568049e249ee7f73 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Template used to generate the attachment list while reading a message.  This
  * template is called from the function formatAttachments() in functions/mime.php.
- * 
+ *
  * The following variables are available in this template:
  *    $attachments - array containing info for all message attachments.  Each
  *                   element in the array represents a separate attachment and
@@ -31,7 +31,7 @@
  */
 
 /** add required includes **/
-require(SM_PATH . 'templates/util_global.php');
+include_once(SM_PATH . 'templates/util_global.php');
 
 /** extract template variables **/
 extract($t);
@@ -76,7 +76,7 @@ if (count($attachments)==0) {
    <a href="<?php echo $attachment['ViewHREF']; ?>"><?php echo _("View"); ?></a>
         <?php
     }
-    
+
     foreach ($attachment['OtherLinks'] as $link) {
         ?>
    &nbsp;|&nbsp;
@@ -89,7 +89,7 @@ if (count($attachments)==0) {
  </tr>
         <?php
     }
-    
+
     if (!empty($plugin_output['attachments_bottom'])) echo $plugin_output['attachments_bottom'];
  ?>
 </table>