Dear Andi,
I've installed Dokuwiki using Ubuntu and the proceeded with an upgrade to get the current revision(Release 2016-06-26a "Elenor of Tsort"). I have several other implementations of Dokuwiki and tried to get my userstyles implemented like I did with other installs.
my userstyle resides in: /usr/share/dokuwiki/conf/userstyle.c
The code in my css:
div.dokuwiki h1{
color: #78BE20;
}
div.dokuwiki h2{
color: #00A9E0;
}
div.dokuwiki h3{
color: #53565A;
}
nothing worked as before, so I started added dbglog() entries to css.php to work out what you do and go stuck on the code around line 80.
// load user styles
dbglog("load user styles");
if(!empty($config_cascade['userstyle'][$mediatype])) {
//dbglog("!empty: ".$config_cascade['userstyle'][$mediatype]);
// added by jattie to force loading of userstyles as foreach never updates
$userstyle=$config_cascade['userstyle'][$mediatype];
$files[$mediatype][$userstyle] = DOKU_BASE;
dbglog("files: ".$files[$mediatype][$userstyle]);
// endof jattie's edits
foreach($config_cascade['userstyle'][$mediatype] as $userstyle) {
dbglog("userstyle: ".$userstyle); // I never get into this block of code
$files[$mediatype][$userstyle] = DOKU_BASE;
}
}
My userstyles render fine now with the code I added as shown above , but you probably had a good reason for coding the way you did and my php is very basic.
Your insights is much appreciated.
Best regards