Merge "Fix malformed UTF-8 going to query profiler"
[lhc/web/wiklou.git] / includes / content / JavaScriptContent.php
index 442b705..0991f07 100644 (file)
@@ -57,7 +57,7 @@ class JavaScriptContent extends TextContent {
                $text = $this->getNativeData();
                $pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
 
-               return new JavaScriptContent( $pst );
+               return new static( $pst );
        }
 
        /**