X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=a5f9c18151640b16351f76f0a8e8c0322e9e6095;hb=cfc57f374c9b71dc6ffe920c320942fae0631ccc;hp=4635f991c280f4e903b4a4a56583c1fda7d2d44c;hpb=b72c4df18b00b3948f0319fa5b01f969e1b92dbd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 4635f991c2..a5f9c18151 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1573,10 +1573,14 @@ class OutputPage extends ContextSource { * Get/set the ParserOptions object to use for wikitext parsing * * @param ParserOptions|null $options Either the ParserOption to use or null to only get the - * current ParserOption object + * current ParserOption object. This parameter is deprecated since 1.31. * @return ParserOptions */ public function parserOptions( $options = null ) { + if ( $options !== null ) { + wfDeprecated( __METHOD__ . ' with non-null $options', '1.31' ); + } + if ( $options !== null && !empty( $options->isBogus ) ) { // Someone is trying to set a bogus pre-$wgUser PO. Check if it has // been changed somehow, and keep it if so.