From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/content/JavaScriptContent.php | 66 ++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 includes/content/JavaScriptContent.php (limited to 'includes/content/JavaScriptContent.php') diff --git a/includes/content/JavaScriptContent.php b/includes/content/JavaScriptContent.php new file mode 100644 index 00000000..9cd947f9 --- /dev/null +++ b/includes/content/JavaScriptContent.php @@ -0,0 +1,66 @@ +getNativeData(); + $pst = $wgParser->preSaveTransform( $text, $title, $user, $popts ); + + return new JavaScriptContent( $pst ); + } + + protected function getHtml() { + $html = ""; + $html .= "
\n";
+		$html .= $this->getHighlightHtml();
+		$html .= "\n
\n"; + + return $html; + } +} -- cgit v1.2.3-54-g00ecf