Fix svg replacement in Greebo+
A recent DokuWiki merge request changed how the style.ini can be accessed: splitbrain/dokuwiki#2241
This commit is contained in:
parent
7b3c2fe1dd
commit
8c8001b6a9
1 changed files with 12 additions and 3 deletions
15
svg.php
15
svg.php
|
@ -318,9 +318,18 @@ class SVG {
|
|||
*/
|
||||
protected function initReplacements() {
|
||||
global $conf;
|
||||
define('SIMPLE_TEST', 1); // hacky shit
|
||||
include DOKU_INC . 'lib/exe/css.php';
|
||||
$ini = css_styleini($conf['template']);
|
||||
if (!class_exists('\dokuwiki\StyleUtils')) {
|
||||
// Pre-Greebo Compatibility
|
||||
|
||||
define('SIMPLE_TEST', 1); // hacky shit
|
||||
include DOKU_INC . 'lib/exe/css.php';
|
||||
$ini = css_styleini($conf['template']);
|
||||
$this->replacements = $ini['replacements'];
|
||||
return;
|
||||
}
|
||||
|
||||
$stuleUtils = new \dokuwiki\StyleUtils();
|
||||
$ini = $stuleUtils->cssStyleini('sprintdoc');
|
||||
$this->replacements = $ini['replacements'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue