| @@ -141,10 +141,13 @@ | ||
| 141 | 141 | // When MB PRO is configured to output CSS via file. |
| 142 | 142 | static function outputFileCSS() |
| 143 | 143 | { |
| 144 | 144 | $collection_id = intval($_GET['id']); |
| 145 | + $doc_id = intval($_GET['doc']); | |
| 145 | 146 | $collection = new collection($collection_id); |
| 146 | - $css = $collection->getDisplayCSS(); | |
| 147 | + $css = $collection->getDisplayCSS($doc_id); | |
| 148 | + header( "Content-type: text/css; charset: UTF-8" ); | |
| 149 | + | |
| 147 | 150 | if ($css) |
| 148 | 151 | { |
| 149 | 152 | header( "Content-type: text/css; charset: UTF-8" ); |
| 150 | 153 | echo $css; |