From 8b3ff80883c84fb23348418f2f4533ed41dd8209 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gerry=20Wei=C3=9Fbach?= <gerry.w@gammaproduction.de>
Date: Thu, 9 Feb 2017 12:40:36 +0100
Subject: [PATCH] Remove type and caching mechanism. The cache will be checked
 later and the type will be replaced by an md5 hash of the list of style
 files.

---
 lib/exe/css.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/exe/css.php b/lib/exe/css.php
index 81e6a39ba..69b04fa95 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -34,18 +34,14 @@ function css_out(){
 
     if ($INPUT->str('s') == 'feed') {
         $mediatypes = array('feed');
-        $type = 'feed';
     } else {
-        $mediatypes = array('screen', 'all', 'print');
-        $type = '';
+        $mediatypes = array('screen', 'all', 'print', 'handheld');
     }
 
     // decide from where to get the template
     $tpl = trim(preg_replace('/[^\w-]+/','',$INPUT->str('t')));
     if(!$tpl) $tpl = $conf['template'];
 
-    // The generated script depends on some dynamic options
-    $cache = new cache('styles'.$_SERVER['HTTP_HOST'].$_SERVER['SERVER_PORT'].$INPUT->int('preview').DOKU_BASE.$tpl.$type,'.css');
 
     // load styl.ini
     $styleini = css_styleini($tpl, $INPUT->bool('preview'));
-- 
GitLab