X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrefreshLinks.php;h=c1170fc0266c3603ba175e94f34b57f7c8b5450d;hb=72e141a5e33417a3f4bcb18cf8a862634bda9bee;hp=8306243c082ecadafc49e6a77dc97a13f692fb74;hpb=d37ff6b1df2e0af7c4b671486de25b91e64d390e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 8306243c08..c1170fc026 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -22,6 +22,7 @@ */ use MediaWiki\MediaWikiServices; +use MediaWiki\Revision\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(); }