瀏覽代碼

Better stylesheet ordering

pdontthink 19 年之前
父節點
當前提交
5ee2685bda
共有 1 個文件被更改,包括 6 次插入1 次删除
  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);
 
     }