X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrefreshLinks.php;h=3f48abbb8ef05edfe627cebf6cc327850c3f3732;hb=982027f9d5636e6c9f2bf17b020742498cc6c014;hp=8306243c082ecadafc49e6a77dc97a13f692fb74;hpb=1dee28cb5f1efd6d9e14d6cc1d0c73c3f69269b4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 8306243c08..3f48abbb8e 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -22,6 +22,7 @@ */ use MediaWiki\MediaWikiServices; +use MediaWiki\Storage\RevisionRecord; use Wikimedia\Rdbms\IDatabase; require_once __DIR__ . '/Maintenance.php'; @@ -231,7 +232,7 @@ class RefreshLinks extends Maintenance { } $rt = null; - $content = $page->getContent( Revision::RAW ); + $content = $page->getContent( RevisionRecord::RAW ); if ( $content !== null ) { $rt = $content->getUltimateRedirectTarget(); }