diff --git a/includes/SpamBlacklistHooks.php b/includes/SpamBlacklistHooks.php index ca8c656f..9af91b38 100644 --- a/includes/SpamBlacklistHooks.php +++ b/includes/SpamBlacklistHooks.php @@ -210,7 +210,7 @@ class SpamBlacklistHooks { // get the link from the not-yet-saved page content. $content = ContentHandler::makeContent( $pageText, $title ); - $parserOptions = $content->getContentHandler()->makeParserOptions( 'canonical' ); + $parserOptions = ParserOptions::newCanonical( 'canonical' ); $output = $content->getParserOutput( $title, null, $parserOptions ); $links = array_keys( $output->getExternalLinks() );