X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=includes%2Fpage%2FWikiPage.php;h=424f6b7d907af951698ee991447ef1da7cc81d95;hb=6e05c20c5c7581df7788f261e82792d27c7e9047;hp=f34e894d722460393881fc96c3948b431941344e;hpb=2426901f8bd02e1c2373a677e2b63e167486bba7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index f34e894d72..424f6b7d90 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -1470,7 +1470,7 @@ class WikiPage implements Page, IDBAccessObject { $bSlots = $b->getRevisionRecord()->getSlots(); $changedRoles = $aSlots->getRolesWithDifferentContent( $bSlots ); - return ( $changedRoles !== [ 'main' ] ); + return ( $changedRoles !== [ 'main' ] && $changedRoles !== [] ); } /** @@ -1870,7 +1870,7 @@ class WikiPage implements Page, IDBAccessObject { /** * Get parser options suitable for rendering the primary article wikitext * - * @see ContentHandler::makeParserOptions + * @see ParserOptions::newCanonical * * @param IContextSource|User|string $context One of the following: * - IContextSource: Use the User and the Language of the provided @@ -1882,7 +1882,7 @@ class WikiPage implements Page, IDBAccessObject { * @return ParserOptions */ public function makeParserOptions( $context ) { - $options = $this->getContentHandler()->makeParserOptions( $context ); + $options = ParserOptions::newCanonical( $context ); if ( $this->getTitle()->isConversionTable() ) { // @todo ConversionTable should become a separate content model, so