X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBooksources.php;h=ea9ddafed171d842b83db997787bf7275b18728c;hp=c187156beeb27ac078d939313ca6774b3cc52126;hb=4cebf80a894f1bc9f9e2f732c8b78d5237810343;hpb=1658759d42a5d802e29a71c3fd70ae127afd3e46 diff --git a/includes/specials/SpecialBooksources.php b/includes/specials/SpecialBooksources.php index c187156bee..ea9ddafed1 100644 --- a/includes/specials/SpecialBooksources.php +++ b/includes/specials/SpecialBooksources.php @@ -36,9 +36,7 @@ class SpecialBookSources extends SpecialPage { } /** - * Show the special page - * - * @param string $isbn ISBN passed as a subpage parameter + * @param string|null $isbn ISBN passed as a subpage parameter */ public function execute( $isbn ) { $out = $this->getOutput(); @@ -171,8 +169,8 @@ class SpecialBookSources extends SpecialPage { if ( $content instanceof TextContent ) { // XXX: in the future, this could be stored as structured data, defining a list of book sources - $text = $content->getNativeData(); - $out->addWikiText( str_replace( 'MAGICNUMBER', $isbn, $text ) ); + $text = $content->getText(); + $out->addWikiTextAsInterface( str_replace( 'MAGICNUMBER', $isbn, $text ) ); return true; } else {