Browse Source

Better stylesheet ordering

pdontthink 19 năm trước cách đây
mục cha
commit
5ee2685bda
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      class/template/Template.class.php

+ 6 - 1
class/template/Template.class.php

@@ -1078,7 +1078,12 @@ class Template
 
         }
 
-        return $return_array;
+
+        // return sheets for the current template set
+        // last so we can enable any custom overrides 
+        // of styles in ancestor sheets 
+        //
+        return array_reverse($return_array);
 
     }