From c4af4cb67d4de228049586e98c52705d2447f96b Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Fri, 1 Aug 2008 11:44:48 +0200
Subject: [PATCH] base relative URLs in userstyle.css on the DokuWiki base

darcs-hash:20080801094448-7ad00-052387d3b78699779ae032556b112a83493c63f1.gz
---
 lib/exe/css.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/exe/css.php b/lib/exe/css.php
index 0aa26de13..918897ed1 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -71,7 +71,7 @@ function css_out(){
         // load plugin, template, user styles
         $files = array_merge($files, css_pluginstyles($style));
         if (isset($tplstyles[$style])) $files = array_merge($files, $tplstyles[$style]);
-        $files[DOKU_CONF.'user'.$style.'.css'] = '';
+        $files[DOKU_CONF.'user'.$style.'.css'] = DOKU_BASE;
     }else{
         $files[DOKU_INC.'lib/styles/style.css'] = DOKU_BASE.'lib/styles/';
         if($conf['spellchecker']){
@@ -83,7 +83,7 @@ function css_out(){
         if($lang['direction'] == 'rtl'){
             if (isset($tplstyles['rtl'])) $files = array_merge($files, $tplstyles['rtl']);
         }
-        $files[DOKU_CONF.'userstyle.css'] = '';
+        $files[DOKU_CONF.'userstyle.css'] = DOKU_BASE;
     }
 
     // check cache age & handle conditional request
-- 
GitLab