X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FJavaScriptContent.php;h=e6377980f9c75f6a475548b75c3e3cb795727408;hb=ba2e62391743f6dbe767651bfbb50e7ba13701ce;hp=69ed8d47a3d6f5deaa1daf06390b086a12b85f1d;hpb=674e486cb5e47c4467b98dd6a961b2ba4787043b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/JavaScriptContent.php b/includes/content/JavaScriptContent.php index 69ed8d47a3..e6377980f9 100644 --- a/includes/content/JavaScriptContent.php +++ b/includes/content/JavaScriptContent.php @@ -60,7 +60,7 @@ class JavaScriptContent extends TextContent { // @todo Make pre-save transformation optional for script pages // See T34858 - $text = $this->getNativeData(); + $text = $this->getText(); $pst = $wgParser->preSaveTransform( $text, $title, $user, $popts ); return new static( $pst ); @@ -72,7 +72,7 @@ class JavaScriptContent extends TextContent { protected function getHtml() { $html = ""; $html .= "
\n";
-		$html .= htmlspecialchars( $this->getNativeData() );
+		$html .= htmlspecialchars( $this->getText() );
 		$html .= "\n
\n"; return $html; @@ -101,7 +101,7 @@ class JavaScriptContent extends TextContent { return $this->redirectTarget; } $this->redirectTarget = null; - $text = $this->getNativeData(); + $text = $this->getText(); if ( strpos( $text, '/* #REDIRECT */' ) === 0 ) { // Extract the title from the url preg_match( '/title=(.*?)\\\\u0026action=raw/', $text, $matches );