Sfoglia il codice sorgente

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

pdontthink 17 anni fa
parent
commit
dd5b92c3f3
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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
  */
 function getMessageCount ($boxes, $type='total') {
+
+    global $trash_folder;
+
     // The Trash folder isn't counted...
-    if ($boxes->mailboxname_full == $GLOBALS['trash_folder'])
+    if ($boxes->mailboxname_full == $trash_folder)
         return 0;
         
     $count = 0;