X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTitle.php;h=038e8b1b20288cf60a6feace353aaf60350d3311;hb=d6016fa1f985120829cfeb596571dd844da8b4e3;hp=de551b4d233a5aa91f35974e49dc3349d7d5e6c7;hpb=ca725a12bc0a5dbea96f2582a78ebfc20daad7e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index de551b4d23..038e8b1b20 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4438,7 +4438,7 @@ class Title implements LinkTarget { * Get the oldest revision timestamp of this page * * @param int $flags Title::GAID_FOR_UPDATE - * @return string MW timestamp + * @return string|null MW timestamp */ public function getEarliestRevTime( $flags = 0 ) { $rev = $this->getFirstRevision( $flags ); @@ -4846,8 +4846,9 @@ class Title implements LinkTarget { $dbw = wfGetDB( DB_MASTER ); $dbw->onTransactionPreCommitOrIdle( - function () { - ResourceLoaderWikiModule::invalidateModuleCache( $this, null, null, wfWikiID() ); + function () use ( $dbw ) { + ResourceLoaderWikiModule::invalidateModuleCache( + $this, null, null, $dbw->getDomainId() ); }, __METHOD__ );