+foreach (['style', $style] as $file) {
+ $stylecssfile = $THEMEPATH . DIRECTORY_SEPARATOR . $file .'.css';
+ if (file_exists($stylecssfile)) {
+ $stylecss .= file_get_contents($stylecssfile);
+ $stylemodified = filemtime($stylecssfile);
+ if ($stylemodified > $modified) {
+ $modified = $stylemodified;
+ }
+ } else {
+ //TODO: use Logger::ERROR?
+ Logger::log('Error: missing file: "' . $stylecssfile .'" (userid: '. $uid .')');
+ }
+}
+$modified = gmdate('r', $modified);