X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBooksources.php;h=ea9ddafed171d842b83db997787bf7275b18728c;hp=02c33b543fb79f1de684aeb6f60037e158f23489;hb=4cebf80a894f1bc9f9e2f732c8b78d5237810343;hpb=954b695a850309818c687d904775fe41972d4f36 diff --git a/includes/specials/SpecialBooksources.php b/includes/specials/SpecialBooksources.php index 02c33b543f..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,7 +169,7 @@ 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(); + $text = $content->getText(); $out->addWikiTextAsInterface( str_replace( 'MAGICNUMBER', $isbn, $text ) ); return true;