dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix malformed UTF-8 going to query profiler"
[lhc/web/wiklou.git]
/
includes
/
content
/
JavaScriptContent.php
diff --git
a/includes/content/JavaScriptContent.php
b/includes/content/JavaScriptContent.php
index
11a470e
..
0991f07
100644
(file)
--- a/
includes/content/JavaScriptContent.php
+++ b/
includes/content/JavaScriptContent.php
@@
-57,7
+57,7
@@
class JavaScriptContent extends TextContent {
$text = $this->getNativeData();
$pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
$text = $this->getNativeData();
$pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
- return new
JavaScriptContent
( $pst );
+ return new
static
( $pst );
}
/**
}
/**
@@
-66,7
+66,7
@@
class JavaScriptContent extends TextContent {
protected function getHtml() {
$html = "";
$html .= "<pre class=\"mw-code mw-js\" dir=\"ltr\">\n";
protected function getHtml() {
$html = "";
$html .= "<pre class=\"mw-code mw-js\" dir=\"ltr\">\n";
- $html .=
$this->getHighlightHtml(
);
+ $html .=
htmlspecialchars( $this->getNativeData()
);
$html .= "\n</pre>\n";
return $html;
$html .= "\n</pre>\n";
return $html;