GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit a4028195 authored by Jonas's avatar Jonas
Browse files

Fix section with upper case

parent 0ca5cf56
......@@ -39,7 +39,7 @@ class syntax_plugin_togglewrap extends DokuWiki_Syntax_Plugin {
public function render($mode, Doku_Renderer &$renderer, $data) {
if($mode != 'xhtml') return false;
list($class, $label, $pos, $opts) = $data;
$renderer->doc .= '<input id="togglewrap_'.$pos.'" type="checkbox" class="togglewrap" value="'.$class.'" '.(in_array('checked',$opts) ? 'checked=checked ' : '').' /><label for="togglewrap_'.$pos.'">'.$label.'</label>';
$renderer->doc .= '<input id="togglewrap_'.$pos.'" type="checkbox" class="togglewrap" value="'.strtolower($class).'" '.(in_array('checked',$opts) ? 'checked=checked ' : '').' /><label for="togglewrap_'.$pos.'">'.$label.'</label>';
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment