X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FWikiPage.php;h=bbf22ba2d4a554c30367417d93dbaaa480f82f02;hb=eca49eb5d2815d3a7b5375fe810d079dd3c17289;hp=bf8a59710dd5cb6b27ba18b57666096664047685;hpb=45b00db7330f12180f4b3cd9ba1404a710ee75b6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index bf8a59710d..bbf22ba2d4 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -213,6 +213,7 @@ class WikiPage implements Page, IDBAccessObject { * @todo Move this UI stuff somewhere else * * @see ContentHandler::getActionOverrides + * @return array */ public function getActionOverrides() { return $this->getContentHandler()->getActionOverrides(); @@ -1070,7 +1071,8 @@ class WikiPage implements Page, IDBAccessObject { } if ( $useParserCache ) { - $parserOutput = ParserCache::singleton()->get( $this, $parserOptions ); + $parserOutput = MediaWikiServices::getInstance()->getParserCache() + ->get( $this, $parserOptions ); if ( $parserOutput !== false ) { return $parserOutput; } @@ -1919,10 +1921,10 @@ class WikiPage implements Page, IDBAccessObject { $wikiPage = $this; // Trigger post-create hook $params = [ &$wikiPage, &$user, $content, $summary, - $flags & EDIT_MINOR, null, null, &$flags, $revision ]; + $flags & EDIT_MINOR, null, null, &$flags, $revision ]; Hooks::run( 'PageContentInsertComplete', $params ); // Trigger post-save hook - $params = array_merge( $params, [ &$status, $meta['baseRevId'] ] ); + $params = array_merge( $params, [ &$status, $meta['baseRevId'], 0 ] ); Hooks::run( 'PageContentSaveComplete', $params ); } ), @@ -2162,7 +2164,7 @@ class WikiPage implements Page, IDBAccessObject { // Save it to the parser cache. // Make sure the cache time matches page_touched to avoid double parsing. - ParserCache::singleton()->save( + MediaWikiServices::getInstance()->getParserCache()->save( $editInfo->output, $this, $editInfo->popts, $revision->getTimestamp(), $editInfo->revid ); @@ -2732,6 +2734,7 @@ class WikiPage implements Page, IDBAccessObject { * @param array|string &$error Array of errors to append to * @param User $user The deleting user * @param array $tags Tags to apply to the deletion action + * @param string $logsubtype * @return Status Status object; if successful, $status->value is the log_id of the * deletion log entry. If the page couldn't be deleted because it wasn't * found, $status is a non-fatal 'cannotdelete' error