Jelajahi Sumber

Don't use GLOBALS['xxx'] -- Doesn't matter, but let's remain with a consistent coding style

pdontthink 17 tahun lalu
induk
melakukan
dd5b92c3f3
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      functions/template/folder_list_util.php

+ 4 - 1
functions/template/folder_list_util.php

@@ -23,8 +23,11 @@
  * @since 1.5.2
  * @since 1.5.2
  */
  */
 function getMessageCount ($boxes, $type='total') {
 function getMessageCount ($boxes, $type='total') {
+
+    global $trash_folder;
+
     // The Trash folder isn't counted...
     // The Trash folder isn't counted...
-    if ($boxes->mailboxname_full == $GLOBALS['trash_folder'])
+    if ($boxes->mailboxname_full == $trash_folder)
         return 0;
         return 0;
         
         
     $count = 0;
     $count = 0;