Bugfix
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 21 Jun 2002 20:43:29 +0000 (20:43 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 21 Jun 2002 20:43:29 +0000 (20:43 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2990 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/html.php
functions/mailbox_display.php

index 72351c0cb2893545ebc1681c93b430345163e748..e85ab2dad6a8783d730cfa1a4cfa092e225a1512 100644 (file)
  */
 
     function html_tag( $tag,                // Tag to output
-                       $val = '',           // Value between tags (if empty only start tag is output)
+                       $val = '',           // Value between tags (if empty only start tag is issued)
                        $align = '',         // Alignment
                        $bgcolor = '',       // Back color
                        $xtra = '' ) {       // Extra options
                         
-       GLOBAL $languages, $language;
+       GLOBAL $languages, $squirrelmail_language;
        
        $align = strtolower( $align );
        $dir   = strtolower( $dir );
        $tag = strtoupper( $tag );
        
-       if ( isset( $languages[$language]['DIR']) ) {
-           $dir = $languages[$language]['DIR'];
+       if ( isset( $languages[$squirrelmail_language]['DIR']) ) {
+           $dir = $languages[$squirrelmail_language]['DIR'];
        } else {
            $dir = 'ltr';
        }
            $alg = " ALIGN=\"$align\"";
        }
        
-           $ret = "<$tag";
+       $ret = "<$tag";
            
-           if ( $dir <> 'ltr' ) {
-               $ret .= " DIR=\"$dir\"";
-           }
+       if ( $dir <> 'ltr' ) {
+           $ret .= " DIR=\"$dir\"";
+       }
            
-           $ret .= "$bgc$alg";
+       $ret .= "$bgc$alg";
            
-           if ( $xtra <> '' ) {
-               $ret .= " $xtra";
-           }
-           $ret .= '>';
+       if ( $xtra <> '' ) {
+           $ret .= " $xtra";
+       }
+       $ret .= '>';
            
-           if ( $val <> '' ) {
-               $ret .= "$val</$tag>";
-           }
+       if ( $val <> '' ) {
+           $ret .= "$val</$tag>";
+       }
        
         return( $ret );
     }
 
-?>
\ No newline at end of file
+?>
index 0f7e74f736e0a5fa322eed879d4b30784d5da685..15c5e7e919594999e9d2fc991c8b92171d20c587 100644 (file)
@@ -586,15 +586,13 @@ $show_num) {
     if ($num_msgs == 0) {
         /* if there's no messages in this folder */
         echo html_tag( 'tr',
-        html_tag( 'td',
-        "<BR><B>" .
-        _("THIS FOLDER IS EMPTY") .
-        "</B><BR>&nbsp;",
-        'center',
-        $color[4],
-        'COLSPAN="' . count($index_order) . '"'
-        )
-        );
+                html_tag( 'td',
+                          "<BR><B>" . _("THIS FOLDER IS EMPTY") . "</B><BR>&nbsp;",
+                          'center',
+                          $color[4],
+                          'COLSPAN="' . count($index_order) . '"'
+                )
+            );
 
     } elseif ($start_msg == $end_msg) {
         /* if there's only one message in the box, handle it differently. */