瀏覽代碼

Only adds the title if the subject isn't completely shown.

Tyler Akins 24 年之前
父節點
當前提交
dda1ff21a4
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      functions/mailbox_display.php

+ 8 - 6
functions/mailbox_display.php

@@ -123,13 +123,15 @@
                    if (! isset($search_stuff)) { $search_stuff = ''; }
                echo "<a href=\"read_body.php?mailbox=$urlMailbox&passed_id=".$msg["ID"]."&startMessage=$startMessage&show_more=0$search_stuff\"";
                do_hook("subject_link");
-	       
-	       $title = get_html_translation_table(HTML_SPECIALCHARS);
-	       $title = array_flip($title);
-	       $title = strtr($msg['SUBJECT'], $title);
-	       $title = str_replace('"', "''", $title);
 
-               echo " title=\"$title\">$flag$subject$flag_end</a>$bold_end</td>\n";
+               if ($subject != $msg['SUBJECT']) {
+ 	          $title = get_html_translation_table(HTML_SPECIALCHARS);
+	          $title = array_flip($title);
+	          $title = strtr($msg['SUBJECT'], $title);
+	          $title = str_replace('"', "''", $title);
+                  echo " title=\"$title\"";
+	       }
+	       echo ">$flag$subject$flag_end</a>$bold_end</td>\n";
                break;
             case 5: # flags
                $stuff = false;