| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public static function themedCSS($file, $uniqueId = null) |
||
| 24 | { |
||
| 25 | $path = ThemeResourceLoader::inst()->findThemedCSS($file, SSViewer::get_themes()); |
||
| 26 | if ($path) { |
||
| 27 | $styles = file_get_contents(Director::baseFolder() . DIRECTORY_SEPARATOR . $path); |
||
| 28 | Requirements::customCSS($styles, $uniqueId); |
||
| 29 | } else { |
||
| 30 | Requirements::customCSS('/* ' . $file . ' not found */'); |
||
| 31 | } |
||
| 34 |