diff --git a/inc/parser/handler.php b/inc/parser/handler.php index f021691abfed54a39124e9e299268634107b708a..740ccea04fe07827e5a75bf3c5422f63ba98a51e 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -268,7 +268,11 @@ class Doku_Handler { function php($match, $state, $pos) { global $conf; if ( $state == DOKU_LEXER_UNMATCHED ) { - $this->_addCall('php',array($match), $pos); + if ($conf['phpok']) { + $this->_addCall('php',array($match), $pos); + } else { + $this->_addCall('file',array($match), $pos); + } } return true; } @@ -288,7 +292,11 @@ class Doku_Handler { function html($match, $state, $pos) { global $conf; if ( $state == DOKU_LEXER_UNMATCHED ) { - $this->_addCall('html',array($match), $pos); + if($conf['htmlok']){ + $this->_addCall('html',array($match), $pos); + } else { + $this->_addCall('file',array($match), $pos); + } } return true; }