From: daniel Date: Mon, 11 Jun 2012 15:45:17 +0000 (+0200) Subject: minor cleanup in comments in ContentHandler X-Git-Tag: 1.31.0-rc.0~22097^2^2~112 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=867ea1a86370f32dec8de3770afff7b8b24c96c4;p=lhc%2Fweb%2Fwiklou.git minor cleanup in comments in ContentHandler --- diff --git a/includes/ContentHandler.php b/includes/ContentHandler.php index 035de9600c..ce7d08349d 100644 --- a/includes/ContentHandler.php +++ b/includes/ContentHandler.php @@ -949,8 +949,7 @@ abstract class TextContentHandler extends ContentHandler { protected function getHtml( Content $content ) { $this->checkModelID( $content->getModel() ); - #XXX: hook? - return $this->getHighlighteHtml( $content ); + return $this->getHighlightHtml( $content ); } /** @@ -964,8 +963,7 @@ abstract class TextContentHandler extends ContentHandler { protected function getHighlightHtml( Content $content ) { $this->checkModelID( $content->getModel() ); - #TODO: use highlighter, if available - #XXX: hook? + #TODO: make Highlighter interface, use here highlighter, if available return htmlspecialchars( $content->getNativeData() ); } @@ -1032,7 +1030,7 @@ class WikitextContentHandler extends TextContentHandler { } } -#XXX: make ScriptContentHandler base class with plugin interface for syntax highlighting? +#XXX: make ScriptContentHandler base class, do highlighting stuff there? /** * @since WD.1