Permalink
Browse files

Fix: adjust to changed style.ini handling (backwards compatible)

  • Loading branch information...
LarsGit223 committed Apr 25, 2018
1 parent 9396d11 commit d60b2653edc42f1d0217ae0da21514df691b13b1
Showing with 9 additions and 2 deletions.
  1. +9 −2 helper/dwcssloader.php
@@ -55,8 +55,15 @@ public function load($plugin_name, $format, $template) {
// Always only use small letters in format
$format = strtolower ($format);
// load styl.ini
$styleini = css_styleini($template);
// load style.ini
if (function_exists('css_styleini')) {
// compatiblity layer for pre-Greebo releases of DokuWiki
$styleini = css_styleini($template);
} else {
// Greebo functionality
$styleUtils = new \dokuwiki\StyleUtils();
$styleini = $styleUtils->cssStyleini($template);
}
$template_files = array();
foreach($mediatypes as $mediatype) {

0 comments on commit d60b265

Please sign in to comment.