X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FTextContentHandler.php;h=e3dc187ffe6831199680c1a01e811faa596d8d9d;hb=cb73d93711b94bc3e174bad296a64205999fa67d;hp=4a7944caeadb535bea9846c65222f3724a7e1593;hpb=f036c5b324e2b2d240edf8d5eeb7fc2af3d88c47;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/TextContentHandler.php b/includes/content/TextContentHandler.php index 4a7944caea..e3dc187ffe 100644 --- a/includes/content/TextContentHandler.php +++ b/includes/content/TextContentHandler.php @@ -38,14 +38,14 @@ class TextContentHandler extends ContentHandler { * Returns the content's text as-is. * * @param Content $content - * @param string $format The serialization format to check + * @param string|null $format The serialization format to check * * @return mixed */ public function serializeContent( Content $content, $format = null ) { $this->checkFormat( $format ); - return $content->getNativeData(); + return $content->getText(); } /** @@ -108,7 +108,7 @@ class TextContentHandler extends ContentHandler { * @since 1.21 * * @param string $text Serialized form of the content - * @param string $format The format used for serialization + * @param string|null $format The format used for serialization * * @return Content The TextContent object wrapping $text */