Skip to content
Snippets Groups Projects
Commit 594b1626 authored by Andreas Gohr's avatar Andreas Gohr Committed by GitHub
Browse files

Merge pull request #2089 from phy25/fix-2080

Fix rendering null $language going to GeSHi (fixes #2088)
parents f883db11 a056e285
No related branches found
No related tags found
No related merge requests found
......@@ -651,7 +651,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$text = substr($text, 0, -1);
}
if(is_null($language)) {
if(empty($language)) { // empty is faster than is_null and can prevent '' string
$this->doc .= '<pre class="'.$type.'">'.$this->_xmlEntities($text).'</pre>'.DOKU_LF;
} else {
$class = 'code'; //we always need the code class to make the syntax highlighting apply
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment