Skip to content

Commit 3aef70f

Browse files
committed
Fixed issue 'Config option 'usestyles' doesn't accept/recognize spaces #51'.
1 parent 1bd2834 commit 3aef70f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

helper/dwcssloader.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ protected function css_pluginFormatStyles($format) {
113113
$list = array();
114114
$plugins = plugin_list();
115115

116-
$usestyle = explode(',', $this->getConf('usestyles'));
116+
$temp = explode(',', $this->getConf('usestyles'));
117+
$usestyle = array();
118+
foreach ($temp as $entry) {
119+
$usestyle [] = trim ($entry);
120+
}
117121
foreach($plugins as $p) {
118122
if(in_array($p, $usestyle)) {
119123
$list[DOKU_PLUGIN . $p ."/screen.css"] = DOKU_BASE . "lib/plugins/". $p ."/";

0 commit comments

Comments
 (0)