From 867ea1a86370f32dec8de3770afff7b8b24c96c4 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 11 Jun 2012 17:45:17 +0200 Subject: [PATCH] minor cleanup in comments in ContentHandler --- includes/ContentHandler.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 -- 2.20.1